-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_state.h
48 lines (39 loc) · 869 Bytes
/
app_state.h
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
40
41
42
43
44
45
46
47
48
#ifndef APP_STATE_H
#define APP_STATE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum AppState_t {
/**
* State when app is initialized, but not opened
* yet (shown on screen). Actual when system loads
* all app descriptors/metadata
*/
StateInit = 0,
/**
* Opened and visible, this state is usually
* used by loading app resources
*/
StateOpen = 1,
/** When app is ready to interact with user */
StateRunning = 2,
/**
* May be used when system sends some event
* to app (like broadcast)
*/
StateUpdate = 3,
/**
* If some alert or system menu shown up. Also can
* happed before app's stop and further kill
*/
StatePaused = 4,
/**
* Called on app closing. At this state app can't
* be shown on screen
*/
StateStoped = 5,
} AppState_t;
#ifdef __cplusplus
}
#endif
#endif // APP_STATE_H