NativeCameraSession
trait · ferroui-media-camera · v0.5.0
trait NativeCameraSession
Members
platform_contextsettingstake_framephotosupports_video_recordingstart_recordingset_controlstop
platform_context
fn platform_context(self: &Self) -> Option<&dyn std::any::Any>
Optional narrow platform extension (for example an analysis stream). Borrowing it never transfers ownership of the camera session.
settings
fn settings(self: &Self) -> CameraSettings
take_frame
fn take_frame(self: &Self) -> Result<Option<FrameLease>, CameraError>
photo
fn photo(self: &Self) -> CameraFuture<CameraPhoto>
supports_video_recording
fn supports_video_recording(self: &Self) -> bool
Silent video recording is optional and separately advertised. Preview or still support alone must never enable a Record button.
start_recording
fn start_recording(self: &Self) -> CameraFuture<Rc<dyn NativeCameraRecording>>
set_control
fn set_control(self: &Self, control: CameraControl) -> Result<(), CameraError>
stop
fn stop(self: &Self)
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.