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.
-
onNextPage() as Lang.Boolean
Represents the Next Page behavior.
-
onPreviousPage() as Lang.Boolean
Represents the Previous Page behavior.
-
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.
Prior to ConnectIQ API version 5.1.0, this function was only called on CustomMenu. It is now used for all Menu2 types.
onNextPage() as Lang.Boolean
Represents the Next Page behavior.
This is typically triggered when at the bottom of a Menu and the down button (KEY_DOWN) or a SWIPE_UP SwipeEvent input is received.
onPreviousPage() as Lang.Boolean
Represents the Previous Page behavior.
This is typically triggered when at the top of a Menu and the up button (KEY_UP) or a SWIPE_DOWN SwipeEvent input is received.
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.
Prior to ConnectIQ API version 5.1.0, this function was only called on CustomMenu. It is now used for all Menu2 types.
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.