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

Method onLoaderEvent

Tactility/Source/service/gui/GuiService.cpp:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30// region AppManifest
31
32void GuiService::onLoaderEvent(LoaderService::Event event) {
33 if (event == LoaderService::Event::ApplicationShowing) {
34 auto app_instance = std::static_pointer_cast<app::AppInstance>(app::getCurrentAppContext());
35 showApp(app_instance);
36 } else if (event == LoaderService::Event::ApplicationHiding) {
37 hideApp();
38 }
39}
40
41int32_t GuiService::guiMain() {
42 auto service = findServiceById<GuiService>(manifest.id);

Callers

nothing calls this directly

Calls 1

getCurrentAppContextFunction · 0.85

Tested by

no test coverage detected