permissionsResultGallery

fun permissionsResultGallery(grantResults: IntArray, context: Context, galleryLauncher: ActivityResultLauncher<Intent>)

Defines the behavior depending on whether the user granted (or denied) the necessary permissions for choosing a photo from the Gallery.

Parameters

grantResults

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

context

context tied to the activity calling this method

galleryLauncher

activity result launcher related to choosing photos from the Gallery