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.

  • all

    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 var 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>