CameraScreen
fun CameraScreen(cameraViewModel: CameraViewModel, cameraSettings: CameraSettings = CameraSettings(), content: @Composable () -> Unit)
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
cameraViewModel
The CameraViewModel used to interact with the camera and perform image analysis.
cameraSettings
The CameraSettings used to configure the camera. Defaults to CameraSettings with default values.
content
A composable lambda for adding UI content on top of the camera preview.