LeviLamina
Loading...
Searching...
No Matches
AppPlatformListener.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/LowMemorySeverity.h"
7#include "mc/deps/core/platform/OperationMode.h"
8#include "mc/deps/core/utility/pub_sub/Subscription.h"
9
10// auto generated forward declare list
11// clang-format off
13// clang-format on
14
15class AppPlatformListener {
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mLowMemorySubscription;
20 ::ll::TypedStorage<1, 1, bool> mListenerRegistered;
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 AppPlatformListener();
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~AppPlatformListener();
31
32 virtual void onAppPaused();
33
34 virtual void onAppUnpaused();
35
36 virtual void onAppPreSuspended();
37
38 virtual void onAppSuspended();
39
40 virtual void onAppResumed();
41
42 virtual void onAppFocusLost();
43
44 virtual void onAppFocusGained();
45
46 virtual void onAppTerminated();
47
48 virtual void onOperationModeChanged(::OperationMode const operationMode);
49
50 virtual void onPerformanceModeChanged(bool const);
51
52 virtual void onPushNotificationReceived(::PushNotificationMessage const& msg);
53
54 virtual void onResizeBegin();
55
56 virtual void onResizeEnd();
57
58 virtual void onDeviceLost();
59
60 virtual void onAppSurfaceCreated();
61
62 virtual void onAppSurfaceDestroyed();
63
64#ifdef LL_PLAT_S
65 virtual void onClipboardCopy(::std::string const&);
66#else // LL_PLAT_C
67 virtual void onClipboardCopy(::std::string const& clipString);
68#endif
69
70#ifdef LL_PLAT_S
71 virtual void onClipboardPaste(::std::string const&);
72#else // LL_PLAT_C
73 virtual void onClipboardPaste(::std::string const& clipString);
74#endif
75
76 virtual void onLowMemory(::LowMemorySeverity);
77 // NOLINTEND
78
79public:
80 // member functions
81 // NOLINTBEGIN
82 MCAPI explicit AppPlatformListener(bool doInit);
83
84 MCAPI void initListener(float priority);
85
86 MCAPI void terminate();
87 // NOLINTEND
88
89public:
90 // constructor thunks
91 // NOLINTBEGIN
92 MCAPI void* $ctor(bool doInit);
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCAPI void $dtor();
99 // NOLINTEND
100
101public:
102 // virtual function thunks
103 // NOLINTBEGIN
104 MCFOLD void $onAppPaused();
105
106 MCFOLD void $onAppUnpaused();
107
108 MCFOLD void $onAppPreSuspended();
109
110 MCFOLD void $onAppSuspended();
111
112 MCFOLD void $onAppResumed();
113
114 MCFOLD void $onAppFocusLost();
115
116 MCFOLD void $onAppFocusGained();
117
118 MCFOLD void $onAppTerminated();
119
120 MCFOLD void $onOperationModeChanged(::OperationMode const operationMode);
121
122 MCFOLD void $onPerformanceModeChanged(bool const);
123
124 MCFOLD void $onPushNotificationReceived(::PushNotificationMessage const& msg);
125
126 MCFOLD void $onResizeBegin();
127
128 MCFOLD void $onResizeEnd();
129
130 MCFOLD void $onDeviceLost();
131
132 MCFOLD void $onAppSurfaceCreated();
133
134 MCFOLD void $onAppSurfaceDestroyed();
135
136 MCFOLD void $onClipboardCopy(::std::string const&);
137
138 MCFOLD void $onClipboardPaste(::std::string const&);
139
140 MCFOLD void $onLowMemory(::LowMemorySeverity);
141
142
143 // NOLINTEND
144
145public:
146 // vftables
147 // NOLINTBEGIN
148 MCNAPI static void** $vftable();
149 // NOLINTEND
150};
static MCAPI void ** $vftable()
Definition PushNotificationMessage.h:5