PermissionKit lets your app request approval for communication permissions from a parent or guardian through Family Sharing. You compose a PermissionQuestion around a CommunicationTopic such as SignificantAppUpdateTopic, present the available PermissionChoice options, and submit it through an AskCenter, which routes the request for approval and returns a PermissionResponse. Use CommunicationHandle and CommunicationLimits to describe who is communicating and the limits in effect, and handle approval flow outcomes with AskPermissionAction and AskError on iOS, macOS, and visionOS.
Essentials 2
Submit communication permission requests and route them to a parent or guardian for approval.
- ClAskCenterA class that manages permission requests you send to parents or guardians for approval.
- StAskPermissionActionAn action that sends a permission question to a parent or guardian.
Permission Questions 4
Compose the question an app asks and describe what it is asking about.
- ClPermissionQuestionA class that captures a permission question posed by a person.
- PrQuestionTopicA protocol that defines a question topic that can be used to interpret what a person is asking for.
- StCommunicationTopicA topic for requesting communication permission with specific people.
- StSignificantAppUpdateTopicA topic for requesting permission for significant app updates.
Choices and Responses 2
Present the available options for a question and read the approval outcome.
- StPermissionChoiceA class that uniquely identifies a specific, statically defined permission choice.
- StPermissionResponseA full permission response that includes the original question and chosen answer.
Communication Context 2
Describe who is communicating and the limits in effect for the request.
- StCommunicationHandleContact information for identifying and communicating with a person.
- ClCommunicationLimitsA type that encapsulates the communication limits for your app.
Errors 1
Handle failures that occur while requesting or routing a permission approval.
- EnAskErrorRepresents errors you encounter when asking a person to send a communication permission question.
Structures 2
- StCommunicationLimitsButtonA button that presents a system UI to a parent or guardian to ask for an exception to a child's communication limits.
- StPermissionButtonA button that presents a system UI to a parent or guardian to ask for an exception to a child's communication limits.