take Picture
fun takePicture(contentValues: ContentValues, saveCollection: Uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI, onResult: (ImageCaptureResult) -> Unit)
Take a picture with the camera.
Parameters
save Collection
Uri collection where the photo will be saved.
content Values
Content values of the photo.
on Result
Callback called when ImageCaptureResult is ready
Take a picture with the camera.
Parameters
file
file where the photo will be saved
on Result
Callback called when ImageCaptureResult is ready
fun takePicture(outputFileOptions: ImageCapture.OutputFileOptions, onResult: (ImageCaptureResult) -> Unit)
Take a picture with the camera.
Parameters
output File Options
Output file options of the photo.
on Result
Callback called when ImageCaptureResult is ready