App type changed to widget for glance support. GlanceView shows event type, date/time, and street+housenumber (or coordinates as fallback). Addresses are cached in Event storage on first view in history. Glance-required modules annotated with (:glance). Address distance threshold raised to 70m. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26 lines
710 B
MonkeyC
26 lines
710 B
MonkeyC
import Toybox.Application;
|
|
import Toybox.Lang;
|
|
import Toybox.WatchUi;
|
|
|
|
class EinsatzprotokollApp extends Application.AppBase {
|
|
|
|
function initialize() {
|
|
AppBase.initialize();
|
|
}
|
|
|
|
function onStart(state as Dictionary?) as Void {
|
|
EventStore.pruneOld();
|
|
Logger.pruneOld();
|
|
}
|
|
|
|
function onStop(state as Dictionary?) as Void {}
|
|
|
|
function getInitialView() as [WatchUi.Views] or [WatchUi.Views, WatchUi.InputDelegates] {
|
|
var view = new MenuView();
|
|
return [ view, new MenuDelegate(view) ];
|
|
}
|
|
|
|
function getGlanceView() as [WatchUi.GlanceView] or [WatchUi.GlanceView, WatchUi.GlanceViewDelegate] or Null {
|
|
return [ new GlanceView() ];
|
|
}
|
|
}
|