CreateDocument
inline fun <ViewModel : BaseLifecycleViewModel> CreateDocument(fileName: String, mimeType: String, noinline onResult: ViewModel.(Uri?) -> Unit): ComposableNavSpec.Launcher<ViewModel, String, Uri?>
Creates a ComposableNavSpec.Launcher to open create a new file.
Parameters
ViewModel
the type of BaseLifecycleViewModel the result should be called on.
fileName
The suggested name of the file.
mimeType
The mime type of the file.
onResult
Callback method that returns the Uri of the document created.