CameraPreview
Creates a Camera Preview's composable.
Parameters
camera session, hold state, info and camera's controller
camera selector to be added, default is CamSelector.Back
camera capture mode, default is CaptureMode.Image
camera image capture mode, default is ImageCaptureStrategy.MinLatency for better performance
scale type to be added, default is ScaleType.FillCenter
image analyzer from camera, see com.ujizin.camposer.state.properties.ImageAnalyzer
camera format, default is CamFormat.Companion.Default
implementation mode to be added, default is ImplementationMode.Performance (Android Only)
enable or disable image analysis
turn on feature focus on tap if true and supported
turn on feature pinch to zoom if true and supported
The preview background color to be added. This is necessary because non-fill scale types can display bars with the system background color, and it is not overridden by the modifier color.
dispatch when preview is switching to front or back (Android only)
composable preview when change camera, and it's not been streaming yet (Android only)
content of focus tap, default is SquareCornerFocus
callback to use when on focus tap is triggered, call onComplete to focusTapContent gone.
content composable within of camera preview.