1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Application-level platform state shared by `gpui` and its platform backends.
/// Thermal state of the system
/// The application's lifecycle phase, as owned and reported by a mobile OS.
///
/// `Inactive` means visible but not receiving input (a system dialog on
/// top), while `Background` means not visible at all, with process death
/// possible at any time thereafter.
///
/// | Phase | iOS | Android |
/// |--------------|------------------------------|--------------|
/// | `Active` | `didBecomeActive` | `onResume` |
/// | `Inactive` | `willResignActive` | `onPause` |
/// | `Background` | `didEnterBackground` | `onStop` |
/// | `Foreground` | `willEnterForeground` | `onStart` |