Package-level declarations

Types

Link copied to clipboard

Supported Camera resolution (frame size) options (as might be needed for different use cases). Camera hardware may not support certain values, thus the actual frame size will be selected automatically according to the camera hardware specifications.

Link copied to clipboard
data class CameraFrame(val cameraImage: CameraImage, val width: Int, val height: Int, val rotation: Int, val previewTransformation: Matrix)

Type containing a frame captured from the Camera composable.

Link copied to clipboard
actual data class CameraImage

Android-specific implementation of org.multipaz.compose.camera.CameraImage.

expect class CameraImage

Platform-specific image from camera capture.

actual data class CameraImage

iOS specific implementation of org.multipaz.compose.camera.CameraImage.

Link copied to clipboard

Supported cameras.

Functions

Link copied to clipboard
actual fun Camera(modifier: Modifier, cameraSelection: CameraSelection, captureResolution: CameraCaptureResolution, showCameraPreview: Boolean, onFrameCaptured: suspend (frame: CameraFrame) -> Unit)
expect fun Camera(modifier: Modifier = Modifier, cameraSelection: CameraSelection = CameraSelection.DEFAULT_FRONT_CAMERA, captureResolution: CameraCaptureResolution, showCameraPreview: Boolean, onFrameCaptured: suspend (frame: CameraFrame) -> Unit)

Custom composable taking care of the camera operations initialization and camera preview composition.

actual fun Camera(modifier: <Error class: unknown class>, cameraSelection: <Error class: unknown class>, captureResolution: <Error class: unknown class>, showCameraPreview: Boolean, onFrameCaptured: suspend (<Error class: unknown class>) -> Unit)