TakePicture

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.