Files
garminApp/source/menuAppDelegate.mc
T
2026-10-05 20:55:29 +01:00

25 lines
539 B
Mason

import Toybox.WatchUi;
import Toybox.Lang;
class menuAppDelegate extends WatchUi.Menu2InputDelegate {
function initialize() {
Menu2InputDelegate.initialize();
}
function onSelect(item as WatchUi.MenuItem) as Void {
switch(item.getId() as Number){
case 0:
break;
case 1:
WatchUi.popView(WatchUi.SLIDE_IMMEDIATE);
}
}
function onCancel() as Boolean {
WatchUi.popView(WatchUi.SLIDE_DOWN);
return true;
}
}