25 lines
539 B
Mason
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;
|
|
}
|
|
|
|
}
|