Class: Toybox.WatchUi.ViewLoop
- Inherits:
-
Toybox.Lang.Object
Overview
An object representing the view loop with a collection of scrollable views.
Constant Summary
-
Direction
Specifies the direction to transition views
Name | Value | Since | Description | See Also |
---|---|---|---|---|
DIRECTION_NEXT | 0 | API Level 3.4.0 |
Loop in the forward direction |
|
DIRECTION_PREVIOUS | 1 | API Level 3.4.0 |
Loop in the backward direction |
Instance Method Summary collapse
-
changeView(direction as ViewLoop.Direction) as Lang.Boolean
Change the view to the next/previous one in the view loop based on the direction and display the page indicator after transitioning.
-
initialize(factory as WatchUi.ViewLoopFactory, options as { :page as Lang.Number, :wrap as Lang.Boolean, :color as Graphics.ColorType } or Null)
Constructor for the ViewLoop.
Instance Method Details
changeView(direction as ViewLoop.Direction) as Lang.Boolean
Change the view to the next/previous one in the view loop based on the direction and display the page indicator after transitioning.
initialize(factory as WatchUi.ViewLoopFactory, options as { :page as Lang.Number, :wrap as Lang.Boolean, :color as Graphics.ColorType } or Null)
Constructor for the ViewLoop