PermissionHandlerPlatform class

The interface that implementations of permission_handler must implement.

Platform implementations should extend this class rather than implement it as permission_handler does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added PermissionHandlerPlatform methods.

Inheritance

Constructors

PermissionHandlerPlatform()
Constructs a PermissionHandlerPlatform.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

checkPermissionStatus(Permission permission) Future<PermissionStatus>
Checks the current status of the given Permission.
checkServiceStatus(Permission permission) Future<ServiceStatus>
Checks the current status of the service associated with the given Permission. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
openAppSettings() Future<bool>
Opens the app settings page. [...]
requestPermissions(List<Permission> permissions) Future<Map<Permission, PermissionStatus>>
Requests the user for access to the supplied list of Permissions, if they have not already been granted before. [...]
shouldShowRequestPermissionRationale(Permission permission) Future<bool>
Checks if you should show a rationale for requesting permission. [...]
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

instance PermissionHandlerPlatform
The default instance of PermissionHandlerPlatform to use. [...]
read / write