getPicture

suspend fun getPicture(options: CameraOptions): <Error class: unknown class><String>

Suspending function to get picture from the camera.

Note: On Android platform you must also use addCameraResultCallback listener.

Return

a Result class containing the picture or the exception

Parameters

options

camera options


fun getPicture(options: CameraOptions, resultCallback: (<Error class: unknown class><String>) -> Unit)

A function to get picture from the camera.

Note: On Android platform you must also use addCameraResultCallback listener.

Parameters

options

camera options

resultCallback

a callback function to get the Result, containing the picture or the exception