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