Class: Toybox.WatchUi.Menu2InputDelegate
- Inherits:
-
Toybox.Lang.Object
Overview
Menu2InputDelegate responds to a Menu2 selection.
This class should be extended to handle selected Menu2 items.
See Also:
Instance Method Summary collapse
-
onBack() as Void
A Menu2 Back key was pressed.
-
onDone() as Void
A Menu2 Done item was selected.
-
onFooter() as Void
A CustomMenu footer was selected.
-
onSelect(item as WatchUi.MenuItem) as Void
A Menu2 MenuItem was selected.
-
onTitle() as Void
A CustomMenu title was selected.
-
onWrap(key as WatchUi.Key) as Lang.Boolean
A Menu2 is preparing to wrap.
Instance Method Details
onBack() as Void
A Menu2 Back key was pressed. If this method is not overridden, it will pop the active view.
onDone() as Void
A Menu2 Done item was selected. This method is only triggered by a CheckboxMenu If this method is not overridden, it will pop the active view.
onFooter() as Void
A CustomMenu footer was selected.
This method is triggered on products with touch input when the user selects the footer area of a CustomMenu. This method is only triggered by a CustomMenu.
onSelect(item as WatchUi.MenuItem) as Void
A Menu2 MenuItem was selected.
onTitle() as Void
A CustomMenu title was selected.
This method is triggered on products with touch input when the user selects the title area of a CustomMenu. This method is only triggered by a CustomMenu.
onWrap(key as WatchUi.Key) as Lang.Boolean
A Menu2 is preparing to wrap.
This method is triggered on button-based products when the user
attempts to navigate off the end of a menu. If this method returns
false
the list will not wrap to the opposite end.
If this method is not overridden, it will return true
and allow
the menu to wrap.