Camera

object Camera(source)

Deprecated

The kvision-cordova module is deprecated and will be removed in a future version.

Main object for Cordova camera.

Types

Link copied to clipboard
data class CameraPopoverOptions(val x: Int, val y: Int, val width: Int, val height: Int, val arrowDir: Camera.PopoverArrowDirection, val popoverWidth: Int, val popoverHeight: Int)

iOS popover options.

Link copied to clipboard

Camera destination types.

Link copied to clipboard

Camera facing types.

Link copied to clipboard

Picture encoding types.

Link copied to clipboard

Picture/video media types.

Link copied to clipboard

Camera picture/video sources.

Link copied to clipboard

iOS popover arrow directions.

Functions

Link copied to clipboard
fun addCameraResultCallback(resultCallback: (Result<String>) -> Unit)

An Android specific function to get picture from the camera after resume when the application webview intent is killed.

Link copied to clipboard
fun cleanup(resultCallback: (Result<String>) -> Unit? = null)

Removes intermediate image files that are kept in the temporary storage after calling getPicture.

Link copied to clipboard
suspend fun getPicture(options: CameraOptions): Result<String>

Suspending function to get picture from the camera.

fun getPicture(options: CameraOptions, resultCallback: (Result<String>) -> Unit)

A function to get picture from the camera.