PermissionStatus enum
Defines the state of a Permission.
- Inheritance
- Available extensions
Values
- denied → const PermissionStatus
-
The user denied access to the requested feature, permission needs to be asked first.
- granted → const PermissionStatus
-
The user granted access to the requested feature.
- restricted → const PermissionStatus
-
The OS denied access to the requested feature. The user cannot change this app's status, possibly due to active restrictions such as parental controls being in place.
Only supported on iOS.
- limited → const PermissionStatus
-
The user has authorized this application for limited access. So far this is only relevant for the Photo Library picker.
Only supported on iOS (iOS14+) and Android (Android 14+)
- permanentlyDenied → const PermissionStatus
-
Permission to the requested feature is permanently denied, the permission dialog will not be shown when requesting this permission. The user may still change the permission status in the settings.
On Android: Android 11+ (API 30+): whether the user denied the permission for a second time. Below Android 11 (API 30): whether the user denied access to the requested feature and selected to never again show a request.
On iOS: If the user has denied access to the requested feature.
- provisional → const PermissionStatus
-
The application is provisionally authorized to post non-interruptive user notifications.
Only supported on iOS (iOS12+).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDenied → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the user denied access to the requested feature.no setter - isGranted → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the user granted access to the requested feature.no setter - isLimited → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the user has authorized this application for limited access. So far this is only relevant for the Photo Library picker.no setter - isPermanentlyDenied → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the permission to the requested feature is permanently denied, the permission dialog will not be shown when requesting this permission. The user may still change the permission status in the settings.no setter - isProvisional → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the application is provisionally authorized to post non-interruptive user notifications.no setter - isRestricted → bool
-
Available on PermissionStatus, provided by the PermissionStatusGetters extension
If the OS denied access to the requested feature. The user cannot change this app's status, possibly due to active restrictions such as parental controls being in place.no setter - 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
Constants
-
values
→ const List<
PermissionStatus> - A constant List of the values in this enum, in order of their declaration.