BloomPermissionStatus enum

Permission authorization status returned by host platforms.

Example:

final status = await BloomPermissions.request(BloomPermission.location);
if (status.isGranted) {
  // Access GPS coordinates
}
Inheritance
Available extensions

Values

granted → const BloomPermissionStatus

Permission has been explicitly granted by the user.

denied → const BloomPermissionStatus

Permission was denied by the user.

permanentlyDenied → const BloomPermissionStatus

Permission was permanently denied (user must manually enable in OS settings).

restricted → const BloomPermissionStatus

Permission is restricted by OS policies (e.g. parental controls or enterprise MDM).

limited → const BloomPermissionStatus

Limited access granted (e.g. iOS limited photo library selection).

unknown → const BloomPermissionStatus

Permission status is unknown or uninitialized.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isDenied bool
Whether the permission is in a denied state (denied or permanentlyDenied).
no setter
isGranted bool
Whether the permission status allows resource access (either granted or limited).
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<BloomPermissionStatus>
A constant List of the values in this enum, in order of their declaration.