PermissionManagerPlatform class abstract
The interface that implementations of permission_manager must implement.
Platform-specific implementations should extend this class and be registered with PermissionManagerPlatform.instance.
- Inheritance
-
- Object
- PlatformInterface
- PermissionManagerPlatform
- Implementers
Constructors
- PermissionManagerPlatform()
- Constructs a PermissionManagerPlatform.
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
-
check(
PermissionManagerPermission permission) → Future< PermissionManagerStatus> -
Checks the status of a specific
permission. -
checkMultiple(
List< PermissionManagerPermission> permissions) → Future<Map< PermissionManagerPermission, PermissionManagerStatus> > -
Checks the status of multiple
permissionsat once. -
getPlatformVersion(
) → Future< String?> - Returns the platform version string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< void> - Opens the application settings on the device.
-
request(
PermissionManagerPermission permission) → Future< PermissionManagerStatus> -
Requests a specific
permissionfrom the user. -
requestMultiple(
List< PermissionManagerPermission> permissions) → Future<Map< PermissionManagerPermission, PermissionManagerStatus> > -
Requests multiple
permissionsfrom the user at once. -
statusStream(
PermissionManagerPermission permission) → Stream< PermissionManagerStatus> -
Provides a stream of PermissionManagerStatus for a specific
permission. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ PermissionManagerPlatform
-
The default instance of PermissionManagerPlatform to use.
getter/setter pair