Package io.flutter.plugin.common
Interface PluginRegistry.RequestPermissionsResultListener
-
- All Known Subinterfaces:
FlutterActivityEvents
- All Known Implementing Classes:
FlutterActivityDelegate
,FlutterPluginRegistry
- Enclosing interface:
- PluginRegistry
public static interface PluginRegistry.RequestPermissionsResultListener
Delegate interface for handling result of permissions requests on behalf of the mainActivity
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)
-
-
-
Method Detail
-
onRequestPermissionsResult
boolean onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)
- Parameters:
requestCode
- The request code passed inActivityCompat.requestPermissions(android.app.Activity, String[], int)
.permissions
- The requested permissions.grantResults
- The grant results for the corresponding permissions which is eitherPackageManager.PERMISSION_GRANTED
orPackageManager.PERMISSION_DENIED
.- Returns:
- true if the result has been handled.
-
-