permissions Result
private fun permissionsResult(requestCode: Int, grantResults: IntArray, context: Context, activity: Activity)
Content copied to clipboard
Defines the behavior related to choosing a photo from the Gallery or taking a photo using the device camera based on the permissions granted by the user.
Parameters
requestCode
The request code passed in ActivityCompat.requestPermissions(android.app.Activity, String[], int)
.
grantResults
The grant results for the corresponding permissions which is either PackageManager.PERMISSION_GRANTED
or PackageManager.PERMISSION_DENIED
. Never null.
context
Context tied to this activity.
activity
This activity.