MCPcopy Create free account
hub / github.com/Forairaaaaa/mooncake / MyAppAbility

Class MyAppAbility

example/ui_ability_test.cpp:24–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22std::atomic<bool> _enter_was_pressed{false};
23
24class MyAppAbility : public UIAbility {
25public:
26 MyAppAbility()
27 {
28 printf("[ui] on construct\n");
29 }
30 ~MyAppAbility()
31 {
32 printf("[ui] on deconstruct\n");
33 }
34 void onCreate() override
35 {
36 printf("[ui] on create\n");
37 }
38 void onShow() override
39 {
40 printf("[ui] on show\n");
41 }
42 void onForeground() override
43 {
44 printf("[ui] on foreground\n");
45 }
46 void onHide() override
47 {
48 printf("[ui] on hide\n");
49 }
50 void onBackground() override
51 {
52 printf("[ui] on backgournd\n");
53 }
54 void onDestroy() override
55 {
56 printf("[ui] on ondestory\n");
57 }
58};
59
60int main()
61{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected