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 main
Activity
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
onRequestPermissionsResult
(int requestCode, String[] permissions, int[] grantResults)
-
Method Details
-
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.
-