permissionsResultGallery

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

Defines the behavior depending on whether the user granted (or denied) the necessary permission for choosing an image 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 an image from the Gallery.