id
TypeScriptget id(): stringSwift declarationvar id: String { get }A unique identifier for this choice. - Requires: This identifier must be globally unique, including across devices and on any server/s.
struct · iOS 26.0+ · SDK 27.1
struct PermissionChoiceA class that uniquely identifies a specific, statically defined permission choice. Each `PermissionQuestion` contains a set of possible answer choices, each corresponding to a globally unique identifier that you can interpret. `PermissionChoice` provides two predefined options for responding to permission requests: ```swift let approveChoice = PermissionChoice.approve let declineChoice = PermissionChoice.decline ``` Use these static properties to create responses to permission questions in your app. You can interpret the context and meaning of each choice based on the specific `PermissionQuestion` being answered. ```swift public static let approve: PermissionChoice public static let decline: PermissionChoice ```
get id(): stringSwift declarationvar id: String { get }A unique identifier for this choice. - Requires: This identifier must be globally unique, including across devices and on any server/s.
get title(): stringSwift declarationvar title: String { get set }The title of the choice that's displayed to the person by the system.
set title(value: string)Swift declarationvar title: String { get set }The title of the choice that's displayed to the person by the system.
get answer(): PermissionChoice_AnswerSwift declarationvar answer: PermissionChoice.Answer { get set }The type of answer this choice represents. The system uses this value to style how the choice appears to the person making the decision.
set answer(value: PermissionChoice_Answer)Swift declarationvar answer: PermissionChoice.Answer { get set }The type of answer this choice represents. The system uses this value to style how the choice appears to the person making the decision.
static get approve(): PermissionChoiceSwift declarationstatic let approve: PermissionChoiceThe system-preferred choice to approve a permission request.
static get decline(): PermissionChoiceSwift declarationstatic let decline: PermissionChoiceThe system-preferred choice to decline a permission request.
No declarations were skipped in this snapshot.