CameraSession
A state object that can be hoisted to control camera, take picture or record video.
To be created use rememberCameraSession.
A session class that holds the current state and information of the camera.
This class serves as a "bridge" to access camera properties such as its current configuration state (CameraState) and hardware information (CameraInfo). It also provides flags indicating the runtime status of the camera, such as whether it is currently streaming or initialized.
Constructors
Properties
The current controller bind to the camera.
Check if camera initialization failed. This can be used to show error UI or retry initialization.
The current info of the current camera.
Check if camera state is initialized or not.
Check if camera state is initialized or not.
Check if camera is streaming or not.
Check if camera is streaming or not.
The current state of the current camera.
Functions
Create instance remember of ImageAnalyzer.
Retry camera initialization after a failure. This method resets the error state and attempts to initialize the camera again.