Refactored manifest onStart/onStop to onCreate/onDestroy (#195)

When writing documentation, I realized how `onStart`/`onStop` isn't clearly communicating what it does (it could imply show/hide), so I renamed it to `onCreate` and `onDestroy`.
This commit is contained in:
Ken Van Hoeylandt
2025-01-28 21:34:48 +01:00
committed by GitHub
parent 6c67845645
commit 7856827ecf
9 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -118,7 +118,7 @@ static void transitionAppToState(std::shared_ptr<app::AppInstance> app, app::Sta
case Initial:
break;
case Started:
app->getApp()->onStart(*app);
app->getApp()->onCreate(*app);
break;
case Showing: {
LoaderEvent event_showing = { .type = LoaderEventTypeApplicationShowing };
@@ -132,7 +132,7 @@ static void transitionAppToState(std::shared_ptr<app::AppInstance> app, app::Sta
}
case Stopped:
// TODO: Verify manifest
app->getApp()->onStop(*app);
app->getApp()->onDestroy(*app);
break;
}