FeaturePermissionRequirements
public struct FeaturePermissionRequirements
A type that encapsulates information about the permission requirements of a feature, for easy access when determining what to do in your app when a Feature is not available.
Use notDetermined.count > 0
to detect when there are permissions that can be authorised.
-
The set of all permissions the feature requires, regardless of their current status
Declaration
Swift
public let all: Set<SystemPermissionConstraint>
-
The set of all as-yet-not-authorised-or-denied permissions the feature requires. This will not include permissions that are unsupported, denied or restricted
Declaration
Swift
public let notDetermined: Set<SystemPermissionConstraint>
-
The set of all denied permissions that the feature requires. This will only include permissions that the user has been offered to authorise and they denied access.
Declaration
Swift
public let denied: Set<SystemPermissionConstraint>
-
The set of all restricted permissions that the feature requires. This will only include permissions that the user is not able to access because of parental control or device profile restrictions
Declaration
Swift
public let restricted: Set<SystemPermissionConstraint>
-
Return the set of all permissions that are not authorized for whatever reason
Declaration
Swift
public var allNotAuthorized: Set<SystemPermissionConstraint> { get }