on Request Permissions Result
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: Array<Int>)
Callback for the result from requesting permissions. This method is invoked for every call on requestPermissions.
Note: It is possible that the permissions request interaction with the user is interrupted. In this case you will receive empty permissions and results arrays which should be treated as a cancellation.
Parameters
request Code
The request code passed in requestPermissions.
permissions
The requested permissions. Never null.
grant Results
The grant results for the corresponding permissions which is either PERMISSION_GRANTED or PERMISSION_DENIED. Never null.
See also
request Permissions(String[], int)