final func ask(_ question: PermissionQuestion<CommunicationTopic>, in viewController: UIViewController) async throws
Requests that a child send the communication permission question to their parent or guardian.
Throws an error if the system can't request a child to send the permission question.
- Parameter question: The question that the system requests the child send.
- Parameter viewController: The view controller to which to anchor and present system UI.
@MainActor final func askSignificantChangePermission(for question: PermissionQuestion<SignificantAppUpdateTopic>, permissionFlow: PermissionFlow, in viewController: UIViewController) async throws -> PermissionResult
Requests that a child send the significant app update permission question to their parent or guardian using the specified permission flow.
Throws an error if the system can't request a child to send the permission question.
- Parameter question: The question that the system requests the child send.
- Parameter permissionFlow: The permission flow to present.
- Parameter viewController: The view controller to which to anchor and present system UI.
- Returns: The user's resolved action — `.askToApprove(didSend:)`, `.approveInPerson(approved:)`, or `.cancel`.
final func ask(_ question: PermissionQuestion<CommunicationTopic>, in viewController: UIViewController) async throws
Requests that a child send the communication permission question to their parent or guardian.
Throws an error if the system can't request a child to send the permission question.
- Parameter question: The question that the system requests the child send.
- Parameter viewController: The view controller to which to anchor and present system UI.
final func ask(_ question: PermissionQuestion<SignificantAppUpdateTopic>, in viewController: UIViewController) async throws
Requests that a child send the significant app update permission question to their parent or guardian.
Throws an error if the system can't request a child to send the permission question.
- Parameter question: The question that the system requests the child send.
- Parameter viewController: The view controller to which to anchor and present system UI.