Permission class

Permission module for handling platform permissions.

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(PermissionType permission) Future<PermissionStatus>
Check permission status
checkAndRequest(BuildContext context, List<PermissionType> permissionTypes) Future<bool>
Request permissions with smart dialog behavior.
openAppSettings() Future<bool>
Navigate to app settings
request(List<PermissionType> permissions) Future<Map<PermissionType, PermissionStatus>>
Request permissions
showPermissionDialog(BuildContext context, PermissionType permissionType) Future<bool>
Show a dialog informing the user that permission is needed, with options to cancel or go to app settings.