RequestPermission class Null safety
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isWaitingForResponse → bool
-
Whether this app is currently waiting for a response from the user
(
true
), or not (false
).read-only -
results
→ Stream<
ResultingPermission> -
After using requestAndroidPermission or requestMultipleAndroidPermissions,
you can listen to this
BroadcastStream
, to detect when the user makes his choice, whether he wants to grant your app the requested permisson/s or not.read-only - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
hasAndroidPermission(
String permission) → Future< bool> -
Check whether your app has a certain
permission
. -
hasAndroidPermissions(
Set< String> permissions) → Future<Map< String, bool> > -
Calls hasAndroidPermission for every permission in
permissions
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
requestAndroidPermission(
String permission, [int requestCode = defaultRequestCode]) → Future< void> -
Calls requestMultipleAndroidPermissions to request
a single
permission
. [...] -
requestMultipleAndroidPermissions(
Set< String> permissions, [int requestCode = defaultRequestCode]) → Future<void> - Description [...]
-
setLogLevel(
LogLevel logLevel) → Future< void> - The logLevel defaults to LogLevel.verbose.
-
shouldShowRequestPermissionRationale(
String permission) → Future< bool> - Description [...]
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Static Properties
- instace → RequestPermission
-
read-only
Constants
- defaultRequestCode → const int
-
If you decide to omit the requestCode, when calling
requestAndroidPermission or requestMultipleAndroidPermissions,
then this one gets used.
1049
- permissionDenied → const int
-
-1
- permissionGranted → const int
-
0