on Request Permissions Result
fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray)
You should call this method from your activity onRequestPermissionsResult.
Parameters
request Code
The request code passed in requestPermissions(android.app.Activity, String[], int)
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.