pub enum SystemUiMode {
EdgeToEdge,
Immersive,
ImmersiveSticky,
LeanBack,
Manual {
top: bool,
bottom: bool,
},
}Expand description
App-facing system-UI (system-bar) override:
set_system_ui_mode requests a status-/navigation-bar visibility mode —
the Flutter SystemChrome.setEnabledSystemUIMode analog — reaching
whichever shell is running the next time it polls (once per frame,
mirroring set_app_theme’s delivery timing). See
frust_shell_common::system_ui’s module docs for the full layering
rationale, the thread contract (a plain Mutex-guarded process-global,
callable from any thread), the FFI wire format each mobile shell exports, and
where Android/iOS diverge from the five-mode vocabulary.
use frust::{SystemUiMode, set_system_ui_mode};
// Hide all system bars; an edge swipe re-shows them.
set_system_ui_mode(SystemUiMode::Immersive);The requested system-bar visibility mode (Flutter SystemUiMode parity —
see the module docs’ platform-behavior-differences section for where
Android/iOS diverge from this vocabulary).
Variants§
EdgeToEdge
Default: bars visible, app draws edge-to-edge behind them.
Immersive
Hide all bars; any edge swipe re-shows them (system keeps the gesture).
ImmersiveSticky
Hide all bars; transient overlay on swipe, auto-hides again.
LeanBack
Hide all bars; re-shown by system interactions (tap on Android leanback).
Manual
Show exactly the listed overlays.
Trait Implementations§
Source§impl Clone for SystemUiMode
impl Clone for SystemUiMode
Source§fn clone(&self) -> SystemUiMode
fn clone(&self) -> SystemUiMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SystemUiMode
Source§impl Debug for SystemUiMode
impl Debug for SystemUiMode
impl Eq for SystemUiMode
Source§impl PartialEq for SystemUiMode
impl PartialEq for SystemUiMode
impl StructuralPartialEq for SystemUiMode
Auto Trait Implementations§
impl Freeze for SystemUiMode
impl RefUnwindSafe for SystemUiMode
impl Send for SystemUiMode
impl Sync for SystemUiMode
impl Unpin for SystemUiMode
impl UnsafeUnpin for SystemUiMode
impl UnwindSafe for SystemUiMode
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
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>
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>
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)
&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)
&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
key and return true if they are equal.