Hello, I need help with this menu.
This works for me by default and correctly:
addItem(new Item(:Apnoe, "Apnoe", Rez.Strings.Apnoe, null, Application.Properties.getValue("Apnoe")));
When i try to add this line to the menu i get an error in the simulator:
Details: Could not find symbol 'onSelect'.
Buzz = new Ui.MenuItem(Rez.Strings.Buzz, null, :Buzz, null); self.addItem(Buzz);
Here I connect the onSelect function:
class SettingsMenuInputDelegate extends WatchUi.Menu2InputDelegate{ var mode; function initialize(mode) { self.mode = mode; Menu2InputDelegate.initialize(); } function onSelect(item){ item.onSelect(mode); } }
I'm asking for help, what should I modify so that the menu I'm adding works for me?
Thank you