pub enum ExploreByTouch {
Off,
Auto,
On,
}Expand description
Whether the platform’s touch exploration mode is on — VoiceOver on iOS, TalkBack’s “Explore by touch” on Android, Narrator touch mode on Windows.
While it is on, a touch is a probe: the first tap announces what is under the finger and a second tap activates it. Gesture recognition must step aside for it, which is why this is an environment flag and not a preference a widget reads case by case.
Variants§
Off
Explore-by-touch is off, or the platform does not report it. The default, and today’s behaviour.
Auto
Follow ScreenReaderState: on when a screen reader is active.
On
Explore-by-touch is on regardless of the screen-reader state.
Trait Implementations§
Source§impl Clone for ExploreByTouch
impl Clone for ExploreByTouch
Source§fn clone(&self) -> ExploreByTouch
fn clone(&self) -> ExploreByTouch
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 ExploreByTouch
Source§impl Debug for ExploreByTouch
impl Debug for ExploreByTouch
Source§impl Default for ExploreByTouch
impl Default for ExploreByTouch
Source§fn default() -> ExploreByTouch
fn default() -> ExploreByTouch
Returns the “default value” for a type. Read more
impl Eq for ExploreByTouch
Source§impl Hash for ExploreByTouch
impl Hash for ExploreByTouch
Source§impl PartialEq for ExploreByTouch
impl PartialEq for ExploreByTouch
impl StructuralPartialEq for ExploreByTouch
Auto Trait Implementations§
impl Freeze for ExploreByTouch
impl RefUnwindSafe for ExploreByTouch
impl Send for ExploreByTouch
impl Sync for ExploreByTouch
impl Unpin for ExploreByTouch
impl UnsafeUnpin for ExploreByTouch
impl UnwindSafe for ExploreByTouch
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