OpenMultipleDocument
inline fun <ViewModel : BaseLifecycleViewModel> OpenMultipleDocument(types: List<String>, noinline onResult: ViewModel.(List<Uri>) -> Unit): ComposableNavSpec.Launcher<ViewModel, Array<String>, List<Uri>>
Creates a ComposableNavSpec.Launcher to open the file manager app to pick a number of files.
Parameters
ViewModel
the type of BaseLifecycleViewModel the result should be called on.
types
List of mime types allowed to be selected.
onResult
Callback method that returns a list of Uri of the documents selected.