This may be a dumb question so I apologize in advance.
I see in the API documentation it says that onShow() is inherited from the View class. In the following code that is in the documentation, you create a menu and then push the view onto the screen.
So my question is where would onShow() need to be implemented to be accessible?
function onMenu() {
var menu = new WatchUi.Menu2({:title=>"My Menu2"});
var delegate;
menu.addItem(
new MenuItem(
"Item 1 Label",
"Item 1 subLabel",
"itemOneId",
{}
)
);
menu.addItem(
new MenuItem(
"Item 2 Label",
"Item 2 subLabel",
"itemTwoId",
{}
)
);
delegate = new MyMenu2Delegate(); // a WatchUi.Menu2InputDelegate
WatchUi.pushView(menu, delegate, WatchUi.SLIDE_IMMEDIATE);
return true;
Thanks