From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- .../-camera/get-picture.html | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 api1/pl.treksoft.kvision.cordova/-camera/get-picture.html (limited to 'api1/pl.treksoft.kvision.cordova/-camera/get-picture.html') diff --git a/api1/pl.treksoft.kvision.cordova/-camera/get-picture.html b/api1/pl.treksoft.kvision.cordova/-camera/get-picture.html new file mode 100644 index 00000000..b1ccfa11 --- /dev/null +++ b/api1/pl.treksoft.kvision.cordova/-camera/get-picture.html @@ -0,0 +1,30 @@ + + + +Camera.getPicture - kvision + + + +kvision / pl.treksoft.kvision.cordova / Camera / getPicture
+
+

getPicture

+ +suspend fun getPicture(options: CameraOptions): Result<String, CameraException> +

Suspending function to get picture from the camera.

+

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

+

Parameters

+

+options - camera options

+

Return
+a Result class containing the picture or the exception

+ +fun getPicture(options: CameraOptions, resultCallback: (Result<String, CameraException>) -> Unit): 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

+ + -- cgit