Class: Toybox.WatchUi.ViewLoopDelegate

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.

Since:

API Level 3.4.0

App Types:

  • Audio Content Provider

  • Data Field

  • Glance

  • Watch App

  • Watch Face

  • Widget

Supported Devices:

Instance Method Summary collapse

Instance Method Details

initialize(viewLoop as WatchUi.ViewLoop)

Constructor for the delegate

Parameters:

  • viewLoop(WatchUi.ViewLoop)

    Object that manages the collection of views

Since:

API Level 3.4.0

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.

Returns:

Since:

API Level 3.4.0

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.

Returns:

Since:

API Level 3.4.0


Generated Mar 4, 2025, 4:09:53 PM