PickMultipleVisualMedia
inline fun <ViewModel : BaseLifecycleViewModel> PickMultipleVisualMedia(maxItems: Int? = null, type: ActivityResultContracts.PickVisualMedia.VisualMediaType = ActivityResultContracts.PickVisualMedia.ImageAndVideo, noinline onResult: ViewModel.(List<Uri>) -> Unit): ComposableNavSpec.Launcher<ViewModel, PickVisualMediaRequest, List<Uri>>
Creates a ComposableNavSpec.Launcher to open Photo app to pick a number of images or videos
Parameters
ViewModel
the type of BaseLifecycleViewModel the result should be called on.
type
The ActivityResultContracts.PickVisualMedia.VisualMediaType to be selected.
onResult
Callback method that returns a list of Uri of the images or videos selected.