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