status(forApplicationPermission:completionHandler:)
Determines the authorization status of the specified permission.
Declaration
func status(forApplicationPermission applicationPermission: CKContainer.ApplicationPermissions, completionHandler: @escaping @Sendable (CKContainer.ApplicationPermissionStatus, (any Error)?) -> Void)func applicationPermissionStatus(for applicationPermission: CKContainer.ApplicationPermissions) async throws -> CKContainer.ApplicationPermissionStatusParameters
- applicationPermission:
The permission to check. For a list of possible values, see Applicationpermissions.
- completionHandler:
The handler to execute with the outcome.
Discussion
Use this method to determine the extra capabilities that the user grants to your app. If your app doesn’t have a specific permission, calling this method yields CKContainer.ApplicationPermissionStatus.initialState. In response, call the requestApplicationPermission(_:completionHandler:) method to prompt the user to provide their permission.