use super::*;
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum AppState {
#[default]
Active,
Inactive,
Background,
Terminated,
}
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum ScreenOrientation {
#[default]
Portrait,
Landscape,
PortraitUpsideDown,
LandscapeLeft,
LandscapeRight,
}
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum MemoryPressure {
#[default]
Normal,
Warning,
Critical,
}
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub enum NetworkStatus {
#[default]
Online,
Offline,
Wifi,
Cellular,
Unknown,
}
#[derive(Clone, Debug, PartialEq)]
pub enum SystemEvent {
Appear,
Disappear,
Foreground,
Background,
Inactive,
Terminate,
FocusChanged(bool),
Resize {
width: f32,
height: f32,
scale_factor: f32,
},
SafeAreaChanged(SafeAreaInsets),
OrientationChanged(ScreenOrientation),
ThemeChanged(SystemTheme),
LocaleChanged(String),
KeyboardVisibilityChanged {
visible: bool,
height: f32,
},
MemoryWarning(MemoryPressure),
LowPowerModeChanged(bool),
NetworkStatusChanged(NetworkStatus),
BackPressed,
DeepLink(String),
ClipboardChanged,
}