MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onCreate

Method onCreate

Tactility/Source/app/boot/Boot.cpp:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182public:
183
184 void onCreate(AppContext& app) override {
185 // Snapshot before the boot thread potentially clears the flag via setupUsbBootMode()
186 isUsbBootSplash = hal::usb::isUsbBootMode();
187
188 // Just in case this app is somehow resumed
189 if (thread.getState() == Thread::State::Stopped) {
190 thread.start();
191 }
192 }
193
194 void onDestroy(AppContext& app) override {
195 thread.join();

Callers

nothing calls this directly

Calls 3

isUsbBootModeFunction · 0.50
getStateMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected