CameraScreen
Composable function that displays the camera preview and handles camera-related permissions and image analysis.
This composable provides a screen for capturing images using the device's camera. It handles camera permission requests and displays the camera preview if permission is granted. It also provides a content slot for overlaying additional UI elements on top of the camera preview.
Parameters
The CameraViewModel used to interact with the camera and perform image analysis.
The CameraSettings used to configure the camera. Defaults to CameraSettings with default values.
Callback invoked when the camera screen is long-pressed
Optional callbacks for camera permission events
Optional callbacks for camera preview lifecycle events
Optional callback for receiving camera input configuration details
A composable lambda for adding UI content on top of the camera preview.