choose From Gallery
fun chooseFromGallery(activity: Activity, galleryLauncher: ActivityResultLauncher<Intent>)
Content copied to clipboard
Obtains the necessary permissions for choosing a photo from the Gallery. If these permissions have already been granted beforehand, this method also defines the subsequent behavior.
To access the gallery, a READ_EXTERNAL_STORAGE
permission is requested from the user.
Parameters
activity
Activity calling this method.
galleryLauncher
Activity result launcher related to choosing photos from the Gallery.