takePicture
open override fun takePicture(contentValues: ContentValues, saveCollection: Uri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI, onResult: (CaptureResult<Uri?>) -> 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 CaptureResult
Take a picture with the camera.
Parameters
file
file where the photo will be saved
onResult
Callback called when CaptureResult
open override fun takePicture(outputFileOptions: ImageCapture.OutputFileOptions, onResult: (CaptureResult<Uri?>) -> Unit)
Take a picture with the camera.
Parameters
outputFileOptions
Output file options of the photo.
onResult
Callback called when CaptureResult is ready
expect open override fun takePicture(filename: String, onImageCaptured: (CaptureResult<String>) -> Unit)