CameraStateEvent
Snapshot of the camera controller state.
Inherits: Event
Properties
aspect_ratio- Preview aspect ratio, when available.description- The underlying camera description.device_orientation- Current device UI orientation.error_description- Error message when the controller has an error.exposure_mode- Active exposure mode.exposure_point_supported- Whether custom exposure points are supported.flash_mode- Active flash mode.focus_mode- Active focus mode.focus_point_supported- Whether custom focus points are supported.has_error- Indicates if the controller is in an error state.is_capture_orientation_locked- True if capture orientation is locked.is_initialized- Whether the controller has been initialized.is_preview_paused- True when the preview has been manually paused.is_recording_paused- Whether an active recording is currently paused.is_recording_video- Whether a video recording is in progress.is_streaming_images- True when image streaming is running.is_taking_picture- True while a still capture is underway.locked_capture_orientation- Orientation used when capture orientation is locked.preview_pause_orientation- Orientation used when the preview was paused.preview_size- Preview dimensions, when available.recording_orientation- Orientation used for the current recording.
Properties
aspect_ratioclass-attributeinstance-attribute
aspect_ratio: Optional[Number] = NonePreview aspect ratio, when available.
descriptionclass-attributeinstance-attribute
description: Optional[CameraDescription] = NoneThe underlying camera description.
device_orientationclass-attributeinstance-attribute
device_orientation: Optional[DeviceOrientation] = NoneCurrent device UI orientation.
error_descriptionclass-attributeinstance-attribute
error_description: Optional[str] = NoneError message when the controller has an error.
exposure_modeclass-attributeinstance-attribute
exposure_mode: Optional[ExposureMode] = NoneActive exposure mode.
exposure_point_supportedclass-attributeinstance-attribute
exposure_point_supported: Optional[bool] = NoneWhether custom exposure points are supported.
flash_modeclass-attributeinstance-attribute
flash_mode: Optional[FlashMode] = NoneActive flash mode.
focus_modeclass-attributeinstance-attribute
focus_mode: Optional[FocusMode] = NoneActive focus mode.
focus_point_supportedclass-attributeinstance-attribute
focus_point_supported: Optional[bool] = NoneWhether custom focus points are supported.
has_errorclass-attributeinstance-attribute
has_error: Optional[bool] = NoneIndicates if the controller is in an error state.
is_capture_orientation_lockedinstance-attribute
is_capture_orientation_locked: boolTrue if capture orientation is locked.
is_preview_pausedinstance-attribute
is_preview_paused: boolTrue when the preview has been manually paused.
is_recording_pausedinstance-attribute
is_recording_paused: boolWhether an active recording is currently paused.
is_recording_videoinstance-attribute
is_recording_video: boolWhether a video recording is in progress.
is_streaming_imagesinstance-attribute
is_streaming_images: boolTrue when image streaming is running.
locked_capture_orientationclass-attributeinstance-attribute
locked_capture_orientation: Optional[DeviceOrientation] = NoneOrientation used when capture orientation is locked.
preview_pause_orientationclass-attributeinstance-attribute
preview_pause_orientation: Optional[DeviceOrientation] = NoneOrientation used when the preview was paused.
preview_sizeclass-attributeinstance-attribute
preview_size: Optional[CameraPreviewSize] = NonePreview dimensions, when available.
recording_orientationclass-attributeinstance-attribute
recording_orientation: Optional[DeviceOrientation] = NoneOrientation used for the current recording.