GarminWatchfaces/KittieCats/source/KittieCatsApp.mc

41 lines
767 B
MonkeyC
Raw Permalink Normal View History

2024-11-15 14:02:03 +01:00
import Toybox.Application;
import Toybox.Lang;
import Toybox.WatchUi;
class KittieCatsApp extends Application.AppBase
{
function initialize()
{
AppBase.initialize();
}
function onStart(state as Dictionary?) as Void
{
ComplicationSubscriber.subscribe();
}
function onStop(state as Dictionary?) as Void
{
}
function getInitialView() as [Views] or [Views, InputDelegates]
{
return [ new KittieCatsView() ];
}
function getSettingsView() as [ Views ] or [ Views, InputDelegates ] or Null
{
return [ new KittieCatsSettingsView(), new KittieCatsSettingsMenuDelegate() ];
}
}
function getApp() as KittieCatsApp
{
return Application.getApp() as KittieCatsApp;
}