Generated from iOS SDK 27.1. Availability is shown on each declaration; permissions and entitlements still apply.
Functions and constants
get · iOS 26.0+defaultChoice
TypeScriptget defaultChoice(): PermissionChoice
Swift declarationfinal var defaultChoice: PermissionChoice { get }
The default answer choice associated with the question.
This default choice will default to the most restrictive choice.
- Requires: This default answer choice must also be present in the list of possible choices provided in the question.
get · iOS 26.0+expirationDate
TypeScriptget expirationDate(): (globalThis.Date) | null
Swift declarationfinal var expirationDate: Date?
The date that this question expires, if any.
Once the date passes, the person that receives the question can no longer respond.
set · iOS 26.0+expirationDate
TypeScriptset expirationDate(value: (globalThis.Date) | null)
Swift declarationfinal var expirationDate: Date?
The date that this question expires, if any.
Once the date passes, the person that receives the question can no longer respond.
get · iOS 26.0+id
TypeScriptget id(): string
Swift declarationfinal let id: UUID
A unique identifier for the question.
get · iOS 26.0+choices
TypeScriptget choices(): Array<PermissionChoice>
Swift declarationfinal var choices: [PermissionChoice] { get }
The possible answer choices associated with this question.
init · iOS 26.0+init
TypeScriptstatic initCommunicationTopic(communicationTopic: CommunicationTopic): PermissionQuestion<CommunicationTopic>
Swift declarationconvenience init(communicationTopic: Topic)
Creates a permission question that asks parents or guardians for communication permission.
- Parameter communicationTopic: The communication topic containing person information and requested actions.
init · iOS 26.0+init
TypeScriptstatic initHandle(handle: CommunicationHandle): PermissionQuestion<CommunicationTopic>
Swift declarationconvenience init(handle: CommunicationHandle)
Creates a permission question that asks parents or guardians for permission to communicate with a person.
- Parameter handle: The communication handle for the person the child wants to communicate with,
such as a phone number, email address, or custom identifier.
init · iOS 26.0+init
TypeScriptstatic initHandles(handles: Array<CommunicationHandle>): PermissionQuestion<CommunicationTopic>
Swift declarationconvenience init(handles: [CommunicationHandle])
Creates a permission question that asks parents or guardians for permission to communicate with multiple people.
- Parameter handles: The communication handles for the people the child wants to communicate with,
such as phone numbers, email addresses, or custom identifiers.
init · iOS 26.2+init
TypeScriptstatic initSignificantAppUpdateTopic(significantAppUpdateTopic: SignificantAppUpdateTopic): PermissionQuestion<SignificantAppUpdateTopic>
Swift declarationconvenience init(significantAppUpdateTopic: Topic)
Creates a permission question that asks parents or guardians for permission to continue using your app after a significant update.
- Parameter significantAppUpdateTopic: The topic describing the significant update that requires permission.
get · iOS 26.0+choice
TypeScriptget choice(): PermissionChoice
Swift declarationlet choice: PermissionChoice
The choice made by the person initiating this response.
get · iOS 26.0+question
TypeScriptget question(): PermissionQuestion<SDKHandle>
Swift declarationlet question: PermissionQuestion<Topic>
The original question that this response answers.