Class: Toybox.WatchUi.ViewLoopDelegate
- Inherits:
-
Toybox.Lang.Object
Overview
A delegate object for the view loop. The next and previous events generated by the system are passed to the delegate object when ViewLoop is active for the app.
Instance Method Summary collapse
-
initialize(viewLoop as WatchUi.ViewLoop)
Constructor for the delegate.
-
onNextView() as Lang.Boolean
Represents the next page behavior.
-
onPreviousView() as Lang.Boolean
Represents the previous page behavior.
Instance Method Details
initialize(viewLoop as WatchUi.ViewLoop)
Constructor for the delegate
onNextView() as Lang.Boolean
Represents the next page behavior.
This is typically triggered by the down button (KEY_DOWN) or by a SWIPE_UP SwipeEvent on a touch screen.
onPreviousView() as Lang.Boolean
Represents the previous page behavior.
This is typically triggered by the up button (KEY_UP) or by a SWIPE_DOWN SwipeEvent on a touch screen.