FrameProducer
Defines methods and properties that describe an entity that can produce frames. Although the contract describes a typical camera, other classes can implement it to produce frames from different sources.
Subtypes:
Inheritors
Types
Events emitted by the FrameProducer to communicate important state changes, warnings and errors.
Functions
Requests the frame producer to cancel any ongoing focus request.
Gets the support information of the frame producer, if available.
Returns a unique identifier of the currently opened frame producer, if available.
Select, open and initialize the frame producer with appropriate configuration.
Requests the frame producer to perform a focusing action on a region of interest.
Requests the frame producer to change the torch state.
Initializes a continuous stream of preview frames.
Starts the recording of a video.
Stops the continuous stream of preview frames.
Stops the recording of a video.
Requests the frame producer to take a picture.
Properties
A custom focus mode to use in the frame producer.
LiveData object to emit the status of the focus, focusing or not.
LiveData object to emit general events related to the frame producer.
LiveData object to emit the frames generated by take picture requests.
LiveData object to emit the frames generated by the preview.
LiveData object to emit the status of the torch, True for ON and False for OFF.
LiveData object to emit the recordings generated by video recording requests.