AuthorizationStatus enum
Represents the current authorization status of a permission request on iOS
This enum defines the possible states that a permission can be in after the user has been prompted or when checking the current permission status. These statuses align with standard iOS permission states and are mapped from iOS framework-specific authorization status enums.
Values
- granted → const AuthorizationStatus
-
Permission has been granted by the user
The user has explicitly allowed the app to access the requested feature or resource through the iOS system permission dialog. The app can proceed with the functionality that requires this permission without further prompting.
- denied → const AuthorizationStatus
-
Permission has been denied by the user
The user has explicitly refused to grant the permission through the iOS system dialog. On iOS, this typically means the user tapped "Don't Allow" or similar option. Further requests may require directing the user to iOS Settings app to manually enable the permission.
- limited → const AuthorizationStatus
-
Permission has been granted with limitations
The user has granted partial access to the requested permission. This is commonly seen with iOS photo library access where the user can select specific photos rather than granting full library access. Available on iOS 14+ and represents limited access authorization states.
- notDetermined → const AuthorizationStatus
-
Permission status has not been determined yet
The user has not yet been asked for this permission, or the permission request is still pending. This is the initial state for most iOS permissions before any user interaction has occurred through the system permission dialog.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRawValue(
String rawValue) → AuthorizationStatus - Creates an AuthorizationStatus from a raw string value. Returns AuthorizationStatus.denied if the value doesn't match.
Constants
-
values
→ const List<
AuthorizationStatus> - A constant List of the values in this enum, in order of their declaration.