onRequestPermissionsResult

fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray)

You should call this method from your activity onRequestPermissionsResult.

Parameters

requestCode

The request code passed in requestPermissions(android.app.Activity, String[], int)

permissions

The requested permissions. Never null.

grantResults

The grant results for the corresponding permissions which is either PERMISSION_GRANTED or PERMISSION_DENIED. Never null.