rememberImagePicker

fun rememberImagePicker(multipleSelectionEnabled: Boolean, mediaType: ActivityResultContracts.PickVisualMedia.VisualMediaType = ActivityResultContracts.PickVisualMedia.ImageAndVideo): ImagePickerState

Creates a ImagePickerState that can be remembered across compositions.

Return

The ImagePickerState.

Since

1.0.0-beta.1

Parameters

multipleSelectionEnabled

The flag to enable multiple selection.

mediaType

The type of media to pick.