pub struct StatusBarOverride { /* private fields */ }Expand description
Builder that can be used to customize the status bar override before applying it.
Implementations§
Source§impl StatusBarOverride
impl StatusBarOverride
Sourcepub fn time(&mut self, time: &str) -> &mut StatusBarOverride
pub fn time(&mut self, time: &str) -> &mut StatusBarOverride
Updates the time that is shown in the status bar.
Sourcepub fn data_network(
&mut self,
data_network: DataNetworkType,
) -> &mut StatusBarOverride
pub fn data_network( &mut self, data_network: DataNetworkType, ) -> &mut StatusBarOverride
Updates the data network type that is shown in the status bar (e.g. 3G or 4G).
Sourcepub fn wifi_mode(&mut self, wifi_mode: WifiMode) -> &mut StatusBarOverride
pub fn wifi_mode(&mut self, wifi_mode: WifiMode) -> &mut StatusBarOverride
Updates the wifi mode that is shown in the status bar (i.e. whether it’s active or not).
Sourcepub fn wifi_bars(&mut self, wifi_bars: usize) -> &mut StatusBarOverride
pub fn wifi_bars(&mut self, wifi_bars: usize) -> &mut StatusBarOverride
Updates the number of wifi bars that are shown in the status bar. This
is only applicable if the wifi mode is WifiMode::Active.
Sourcepub fn cellular_mode(
&mut self,
cellular_mode: CellularMode,
) -> &mut StatusBarOverride
pub fn cellular_mode( &mut self, cellular_mode: CellularMode, ) -> &mut StatusBarOverride
Updates the cellular mode that is shown in the status bar (i.e. whether it’s active or not).
Sourcepub fn cellular_bars(&mut self, cellular_bars: usize) -> &mut StatusBarOverride
pub fn cellular_bars(&mut self, cellular_bars: usize) -> &mut StatusBarOverride
Updates the number of cellular bars that are shown in the status bar.
This is only applicable if the cellular mode is
CellularMode::Active.
Sourcepub fn operator_name(&mut self, name: &str) -> &mut StatusBarOverride
pub fn operator_name(&mut self, name: &str) -> &mut StatusBarOverride
Updates the operator name that is shown in the status bar. This is only
applicable if the cellular mode is CellularMode::Active.
Sourcepub fn battery_state(&mut self, state: BatteryState) -> &mut StatusBarOverride
pub fn battery_state(&mut self, state: BatteryState) -> &mut StatusBarOverride
Updates the battery state that is shown in the status bar.
Sourcepub fn battery_level(&mut self, level: usize) -> &mut StatusBarOverride
pub fn battery_level(&mut self, level: usize) -> &mut StatusBarOverride
Updates the battery state that is shown in the status bar. This is only
applicable if the battery state is BatteryState::Discharging.