Hi
Newbie here :) I have a settings menu for a data field, and when an item is selected I store the value, however what I cannot work out is how to close the menu after an item is selected? I have read the docs and there is no method specifically for this. Any guidance would be appreciated!
class ChowTimeSettingsMenu extends WatchUi.Menu2 {
public function initialize() {
Menu2.initialize({:title=>"Settings"});
}
}
class ChowTimeSettingsMenuDelegate extends WatchUi.Menu2InputDelegate {
public function initialize() {
System.println("ChowTimeSettingsMenuDelegate : initialize : called");
Menu2InputDelegate.initialize();
}
public function onSelect(menuItem as WatchUi.MenuItem) as Void {
System.println("ChowTimeSettingsMenuDelegate : onSelect : called");
var id = menuItem.getId();
if (id instanceof Number) {
Storage.setValue("eatIntervalMinutes", id);
}
menuItem.Close ????
}
}
Regards
Peter
