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
Android-specific implementation of org.multipaz.compose.camera.CameraImage.
Platform-specific image from camera capture.
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.