PermissionHandlerPlatform class abstract
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
-
- Object
- PlatformInterface
- PermissionHandlerPlatform
Constructors
- PermissionHandlerPlatform()
- Constructs a PermissionHandlerPlatform.
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
-
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 nonexistent 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 -
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.
getter/setter pair