Package-level declarations

Functions

Link copied to clipboard
fun CameraPreview(modifier: Modifier = Modifier, cameraState: CameraState = rememberCameraState(), camSelector: CamSelector = cameraState.camSelector, captureMode: CaptureMode = cameraState.captureMode, imageCaptureMode: ImageCaptureMode = cameraState.imageCaptureMode, imageCaptureTargetSize: ImageTargetSize? = cameraState.imageCaptureTargetSize, flashMode: FlashMode = cameraState.flashMode, scaleType: ScaleType = cameraState.scaleType, enableTorch: Boolean = cameraState.enableTorch, exposureCompensation: Int = cameraState.initialExposure, zoomRatio: Float = 1.0f, imageAnalyzer: ImageAnalyzer? = null, implementationMode: ImplementationMode = cameraState.implementationMode, isImageAnalysisEnabled: Boolean = cameraState.isImageAnalysisEnabled, isFocusOnTapEnabled: Boolean = cameraState.isFocusOnTapEnabled, isPinchToZoomEnabled: Boolean = cameraState.isZoomSupported, videoQualitySelector: QualitySelector = cameraState.videoQualitySelector, onPreviewStreamChanged: () -> Unit = {}, onSwitchToFront: @Composable (Bitmap) -> Unit = {}, onSwitchToBack: @Composable (Bitmap) -> Unit = {}, onFocus: suspend (onComplete: () -> Unit) -> Unit = { onComplete -> delay(1000L) onComplete() }, onZoomRatioChanged: (Float) -> Unit = {}, focusTapContent: @Composable () -> Unit = { SquareCornerFocus() }, content: @Composable () -> Unit = {})

Creates a Camera Preview's composable.