takePicture

fun takePicture(contentValues: ContentValues, saveCollection: Uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI, onResult: (ImageCaptureResult) -> Unit)

Take a picture with the camera.

Parameters

saveCollection

Uri collection where the photo will be saved.

contentValues

Content values of the photo.

onResult

Callback called when ImageCaptureResult is ready


fun takePicture(file: File, onResult: (ImageCaptureResult) -> Unit)

Take a picture with the camera.

Parameters

file

file where the photo will be saved

onResult

Callback called when ImageCaptureResult is ready


fun takePicture(outputFileOptions: ImageCapture.OutputFileOptions, onResult: (ImageCaptureResult) -> Unit)

Take a picture with the camera.

Parameters

outputFileOptions

Output file options of the photo.

onResult

Callback called when ImageCaptureResult is ready