FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NativeCameraSession

    trait · ferroui-media-camera · v0.5.0

    trait NativeCameraSession
    

    View source

    Members

    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.

    Source

    settings

    fn settings(self: &Self) -> CameraSettings
    

    Source

    take_frame

    fn take_frame(self: &Self) -> Result<Option<FrameLease>, CameraError>
    

    Source

    photo

    fn photo(self: &Self) -> CameraFuture<CameraPhoto>
    

    Source

    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.

    Source

    start_recording

    fn start_recording(self: &Self) -> CameraFuture<Rc<dyn NativeCameraRecording>>
    

    Source

    set_control

    fn set_control(self: &Self, control: CameraControl) -> Result<(), CameraError>
    

    Source

    stop

    fn stop(self: &Self)
    

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.