Bedtime. /Application Control

Application Control

Application lifecycle management

void os_app_exit(void)

Exit the current app and return to launcher

void os_app_close(os_app_t* app)

Close the given app

os_app_t*appApp to close
void* os_app_get_model(const os_app_t* app)

Get app's model data

const os_app_t*appApp context

Returns — Pointer to model, or NULL if not allocated

my_model_t* m = (my_model_t*)os_app_get_model(app);
m->counter++;