onRequestPermissionsResult

fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray, vararg receivers: Any)

Handle the result of a permission request, should be called from the calling Activity's ActivityCompat.OnRequestPermissionsResultCallback.onRequestPermissionsResult method.

If any permissions were granted or denied, the object will receive the appropriate callbacks through PermissionCallbacks and methods annotated with AfterPermissionGranted will be run if appropriate.

Parameters

requestCode

requestCode argument to permission result callback.

permissions

permissions argument to permission result callback.

grantResults

grantResults argument to permission result callback.

receivers

an array of objects that have a method annotated with AfterPermissionGranted or implement PermissionCallbacks.