Camera

object Camera

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: (<Error class: unknown class><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: (<Error class: unknown class><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): <Error class: unknown class><String>

Suspending function to get picture from the camera.

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

A function to get picture from the camera.