choose From Gallery
fun chooseFromGallery(activity: Activity, galleryLauncher: ActivityResultLauncher<Intent>)
Content copied to clipboard
Obtains the necessary permission for choosing an image from the Gallery. If this permission 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 an image from the Gallery.