CameraCaptureUI
struct · ferroui-media-camera-controls · v0.5.0
struct CameraCaptureUI
Members
TYPEto_refconstructnewset_provider_factoryset_start_optionscompletederrorspreviewis_busystart_previewtake_photostart_recordingfinish_recordingcancel
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CameraCaptureUI>
Returns a strong reference to this object.
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
set_provider_factory
fn set_provider_factory(self: &Self, factory: Option<Rc<CameraProviderFactory>>, budget: FrameBudget)
Configures resources only. Starting still requires an explicit user action.
set_start_options
fn set_start_options(self: &Self, options: CameraStartOptions)
completed
fn completed(self: &Self) -> MediaEvent<CameraCaptureResult>
errors
fn errors(self: &Self) -> MediaEvent<CameraError>
preview
fn preview(self: &Self) -> Option<Ref<CameraPreview>>
is_busy
fn is_busy(self: &Self) -> bool
start_preview
fn start_preview(self: &Self)
take_photo
fn take_photo(self: &Self)
start_recording
fn start_recording(self: &Self)
finish_recording
fn finish_recording(self: &Self)
cancel
fn cancel(self: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<CameraCaptureUI>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplLayoutableImplInteractiveImplInputElementImplFerroObjectImplVisualImplTemplatedControlImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.