pub enum LiveRegionMode {
Polite,
Assertive,
}Expand description
How urgently a screen reader reads a node whose text changed on its own.
This is Compose’s LiveRegionMode (Modifier.semantics { liveRegion = LiveRegionMode.Polite }). A node without it stays silent until the reader
lands on it, which is wrong for a timer, a countdown, a status line, or an
error that appears next to a text field: a blind user hears nothing.
Variants§
Polite
Read the new text once the reader finishes what it says now.
Assertive
Cut off what the reader says now and read the new text at once. For text a user must hear immediately, such as an error that stops them.
Trait Implementations§
Source§impl Clone for LiveRegionMode
impl Clone for LiveRegionMode
Source§fn clone(&self) -> LiveRegionMode
fn clone(&self) -> LiveRegionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LiveRegionMode
Source§impl Debug for LiveRegionMode
impl Debug for LiveRegionMode
impl Eq for LiveRegionMode
Source§impl Hash for LiveRegionMode
impl Hash for LiveRegionMode
Source§impl PartialEq for LiveRegionMode
impl PartialEq for LiveRegionMode
impl StructuralPartialEq for LiveRegionMode
Auto Trait Implementations§
impl Freeze for LiveRegionMode
impl RefUnwindSafe for LiveRegionMode
impl Send for LiveRegionMode
impl Sync for LiveRegionMode
impl Unpin for LiveRegionMode
impl UnsafeUnpin for LiveRegionMode
impl UnwindSafe for LiveRegionMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.