PermissionGuardPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- PermissionGuardPlatform
- Implementers
Constructors
- PermissionGuardPlatform()
- Constructs a PermissionGuardPlatform.
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
-
getPlatformVersion(
) → Future< String?> - Returns the platform/version string provided by the platform implementation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openAppSettings(
) → Future< bool> - Opens the app settings screen. Returns true if the call was successful.
-
requestPermission(
String permission) → Future< String?> -
Requests the given
permissionfrom the platform and returns a platform-specific status string (e.g. 'granted', 'denied', 'permanentlyDenied'). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ PermissionGuardPlatform
-
The default instance of PermissionGuardPlatform to use.
getter/setter pair