getPicture

suspend fun getPicture(options: CameraOptions): Result<String>(source)

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: (Result<String>) -> Unit)(source)

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