MaterialSnackbarHost
struct · ferroui-themes-material · v0.5.0
struct MaterialSnackbarHost
A XAML-friendly host for a FIFO queue of Material snackbars. Place it in the bottom row or overlay of the application's existing layout. At most one request is actionable; outgoing visuals may overlap during their exit fade.
Members
TYPEto_refreduced_motion_propertymotion_scheme_propertyis_open_propertyconstructnewreduced_motionset_reduced_motionmotion_schemeset_motion_schemeis_openqueued_countcurrent_idcurrent_snackbarset_timeout_policyshowdismiss_currentcancelclear
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaterialSnackbarHost>
Returns a strong reference to this object.
reduced_motion_property
fn reduced_motion_property() -> &'static StyledProperty<bool>
motion_scheme_property
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
is_open_property
fn is_open_property() -> &'static DirectProperty<MaterialSnackbarHost, bool>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
reduced_motion
fn reduced_motion(self: &Self) -> bool
set_reduced_motion
fn set_reduced_motion(self: &Self, value: bool)
motion_scheme
fn motion_scheme(self: &Self) -> MaterialMotionScheme
set_motion_scheme
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
is_open
fn is_open(self: &Self) -> bool
queued_count
fn queued_count(self: &Self) -> usize
current_id
fn current_id(self: &Self) -> Option<u64>
current_snackbar
fn current_snackbar(self: &Self) -> Option<Ref<MaterialSnackbar>>
set_timeout_policy
fn set_timeout_policy(self: &Self, policy: Option<Rc<dyn MaterialSnackbarTimeoutPolicy>>)
Set the platform accessibility timeout adapter for subsequently shown requests.
show
fn show(self: &Self, message: impl Into<MaterialSnackbarMessage>) -> MaterialSnackbarHandle
Queue a message. A discarded handle leaves the request queued; use .cancel() explicitly
or .await the handle for cancellation tied to the asynchronous operation's lifetime.
dismiss_current
fn dismiss_current(self: &Self) -> bool
cancel
fn cancel(self: &Self, id: u64) -> bool
Cancel one active or queued request. A stale identity cannot affect another message.
clear
fn clear(self: &Self)
Cancel the current request and every queued request, without displaying intermediate items.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherCastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>TemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<MaterialSnackbarHost>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplLayoutableImplControlImplFerroObjectImplVisualImplTemplatedControlImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.