pub struct SemanticsCustomAction {
pub label: String,
/* private fields */
}Expand description
A screen-reader action that is not a click, e.g. Compose’s
customActions = listOf(CustomAccessibilityAction("Pause") { … }).
TalkBack surfaces these through its actions menu rather than by activating the node, which is the only way to reach a command that has no on-screen control — pausing a game whose whole surface is one tap-to-launch target.
Fields§
§label: StringWhat the screen reader reads out in its actions menu.
Implementations§
Trait Implementations§
Source§impl Clone for SemanticsCustomAction
impl Clone for SemanticsCustomAction
Source§fn clone(&self) -> SemanticsCustomAction
fn clone(&self) -> SemanticsCustomAction
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 moreSource§impl Debug for SemanticsCustomAction
impl Debug for SemanticsCustomAction
impl Eq for SemanticsCustomAction
Auto Trait Implementations§
impl !RefUnwindSafe for SemanticsCustomAction
impl !Send for SemanticsCustomAction
impl !Sync for SemanticsCustomAction
impl !UnwindSafe for SemanticsCustomAction
impl Freeze for SemanticsCustomAction
impl Unpin for SemanticsCustomAction
impl UnsafeUnpin for SemanticsCustomAction
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