CaptureVideo
inline fun <ViewModel : BaseLifecycleViewModel> CaptureVideo(uri: Uri?, noinline onResult: ViewModel.(Boolean) -> Unit): ComposableNavSpec.Launcher<ViewModel, Uri, Boolean>
Creates a ComposableNavSpec.Launcher to open the camera to capture a video.
Parameters
ViewModel
the type of BaseLifecycleViewModel the result should be called on.
uri
The Uri where the captured video should be stored.
onResult
Callback method that returns whether a video was captured successfully.