BloomPermissions class

Central native permissions manager for Bloom applications wrapping permission_handler.

Supports runtime permission checks, interactive authorization prompts, OS settings navigation, and test mock simulations without platform channel invocations.

Example:

final status = await BloomPermissions.request(BloomPermission.camera);
if (status.isDenied) {
  await BloomPermissions.openAppSettings();
}

Constructors

BloomPermissions()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

check(BloomPermission permission) Future<BloomPermissionStatus>
Checks current permission status without prompting the user.
openAppSettings() Future<bool>
Opens the device application settings screen so the user can manually enable permissions.
request(BloomPermission permission) Future<BloomPermissionStatus>
Requests runtime permission authorization from the user.
resetSimulation() → void
Clears all simulated permission overrides and restores platform channel dispatching.
simulate({required BloomPermission permission, required BloomPermissionStatus status}) → void
Simulates a permission status response without invoking host platform channels.