MethodChannelPermissionGuard class
An implementation of PermissionGuardPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- PermissionGuardPlatform
- MethodChannelPermissionGuard
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
Keep this name consistent with the native plugin registrations.
final
- 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.
override
-
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.
override
-
requestPermission(
String permission) → Future< String?> -
Requests the given
permissionfrom the platform and returns a platform-specific status string (e.g. 'granted', 'denied', 'permanentlyDenied').override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited