Camera State
A state object that can be hoisted to control camera, take picture or record video.
To be created use rememberCameraState.
Properties
Main controller from CameraX. useful in cases that haven't been release some feature yet.
Verify if camera has flash or not.
Check if compensation exposure is supported.
Check if focus on tap supported
Check if image analysis is supported by camera hardware level.
Check if camera state is initialized or not.
Return true if it's recording.
Check if camera is streaming or not.
Return if video is supported.
Check if zoom is supported.
Get max exposure from camera.
Get min exposure from camera.
Functions
Set effects on camera
Return if has camera selector or not, camera must be initialized, otherwise result is false.
Flash mode's State to CameraPreview Composable.
Create instance remember of ImageAnalyzer.
Torch's State to CameraPreview Composable.
Set effects on camera
Start recording camera.
Stop recording camera.
Take a picture with the camera.
Transform takePicture output files options to suspend function
Transform takePicture file to suspend function
Transform takePicture content values to suspend function
Toggle recording camera.
Transform toggle recording output files options to suspend function
Transform toggle recording file to suspend function
Transform toggle recording content values options to suspend function