pub enum SystemBarsBehavior {
ShowBarsBySwipe,
ShowTransientBarsBySwipe,
}Expand description
What a swipe from a screen’s edge does while the bars are hidden: Android’s
WindowInsetsController.setSystemBarsBehavior.
Variants§
ShowBarsBySwipe
The swipe brings the bars back, and they stay; the system acts on it as usual. Android’s
BEHAVIOR_SHOW_BARS_BY_SWIPE.
ShowTransientBarsBySwipe
The swipe shows the bars for a moment, over the view, which keeps the touch; a second swipe
acts. Android’s BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE, iOS’s deferred edge gestures. For
a game, where a stray swipe must not leave it.
Trait Implementations§
Source§impl Clone for SystemBarsBehavior
impl Clone for SystemBarsBehavior
impl Copy for SystemBarsBehavior
Source§impl Debug for SystemBarsBehavior
impl Debug for SystemBarsBehavior
impl Eq for SystemBarsBehavior
Source§impl Hash for SystemBarsBehavior
impl Hash for SystemBarsBehavior
Source§impl PartialEq for SystemBarsBehavior
impl PartialEq for SystemBarsBehavior
impl StructuralPartialEq for SystemBarsBehavior
Auto Trait Implementations§
impl Forget for SystemBarsBehavior
impl Freeze for SystemBarsBehavior
impl Move for SystemBarsBehavior
impl RefUnwindSafe for SystemBarsBehavior
impl Send for SystemBarsBehavior
impl Sync for SystemBarsBehavior
impl Unpin for SystemBarsBehavior
impl UnsafeUnpin for SystemBarsBehavior
impl UnwindSafe for SystemBarsBehavior
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<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.