Camera Preview
Creates a Camera Preview's composable.
Parameters
camera state hold some states and camera's controller, it can be useful to given action like CameraState.takePicture
camera selector to be added, default is back
camera capture mode, default is image
camera image capture mode, default is minimum latency for better performance
suggested target size for image camera capture, default is camera's preferred size
flash mode to be added, default is off
scale type to be added, default is fill center
enable torch from camera, default is false.
camera exposure compensation to be added
zoom ratio to be added, default is 1.0
image analyzer from camera, see ImageAnalyzer
implementation mode to be added, default is performance
enable or disable image analysis
turn on feature focus on tap if true
turn on feature pinch to zoom if true
quality selector to the video capture
dispatch when preview is switching to front or back
composable preview when change camera to front and it's not been streaming yet
composable preview when change camera to back and it's not been streaming yet
dispatch when zoom is changed by pinch to zoom
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.