pub struct SystemChrome;Expand description
Controls specific aspects of the operating system’s graphical interface and how it interacts with the application.
Implementations§
Source§impl SystemChrome
impl SystemChrome
Sourcepub fn set_application_switcher_description(
app: &App,
description: &ApplicationSwitcherDescription,
)
pub fn set_application_switcher_description( app: &App, description: &ApplicationSwitcherDescription, )
Specifies the description of the current state of the application as it pertains to the application switcher (also known as “recent tasks”).
Any part of the description that is unsupported on the current platform will be ignored.
Sourcepub fn set_system_ui_overlay_style(app: &mut App, style: &SystemUiOverlayStyle)
pub fn set_system_ui_overlay_style(app: &mut App, style: &SystemUiOverlayStyle)
Specifies the style to use for the system overlays (e.g. the status bar on Android or iOS, the system navigation bar on Android) that are visible (if any).
This method will schedule the embedder update to be run in a microtask. Any subsequent calls to this method during the current event loop will overwrite the pending value, such that only the last specified value takes effect.
Call this API in code whose lifecycle matches that of the desired
system UI styles. For instance, to change the system UI style on a new
page, consider calling when pushing/popping a new PageRoute.
If a particular style is not supported on the platform, selecting it will have no effect.
For more complex control of the system overlay styles, consider using
an AnnotatedRegion widget instead of calling this method directly. That widget
places a value directly into the layer tree where it can be hit-tested by the
framework.
Sourcepub fn handle_app_lifecycle_state_changed(
app: &mut App,
state: AppLifecycleState,
)
pub fn handle_app_lifecycle_state_changed( app: &mut App, state: AppLifecycleState, )
Called by the binding during a transition to a new app lifecycle state.
Sourcepub fn latest_style(app: &mut App) -> Option<SystemUiOverlayStyle>
pub fn latest_style(app: &mut App) -> Option<SystemUiOverlayStyle>
The last style that was set using
set_system_ui_overlay_style.