public static interface CoronaActivity.OnRequestPermissionsResultHandler
CoronaActivity
when a result has been received from the request permission dialog.
Only used in Android 6.0 and above.
This handler is assigned to the CoronaActivity
via its
registerRequestPermissionsResultHandler()
method, which returns a unique request code for you to use when calling which returns a unique request code for you to use when
calling
requestPermissions().
Added in daily build 2016.2828.
CoronaActivity
Modifier and Type | Method and Description |
---|---|
void |
onHandleRequestPermissionsResult(CoronaActivity activity,
int requestCode,
String[] permissions,
int[] grantResults)
Called when returning from the request permission dialog.
|
void onHandleRequestPermissionsResult(CoronaActivity activity, int requestCode, String[] permissions, int[] grantResults)
activity
- The CoronaActivity
that is receiving the result.requestCode
- The integer request code originally supplied to
requestPermissions(). Allows you to identify which permissions request this came from.permissions
- The requested permissions. Never null.grantResults
- The grant results for the corresponding permissions which is either
PERMISSION_GRANTED or
PERMISSION_DENIED. Never null.