Class: Toybox.WatchUi.ViewLoopFactory

Overview

A factory object for view/delegate instances, used by ViewLoop

Since:

API Level 3.4.0

Supported Devices:

Instance Method Summary collapse

Instance Method Details

getSize() as Lang.Number

Return the number of view/delegate pairs that are managed by this factory

Returns:

  • Lang.Number

    total number of views for this factory

Since:

API Level 3.4.0

getView(page as Lang.Number) as [ WatchUi.View ] or [ WatchUi.View, WatchUi.BehaviorDelegate ]

This function will be called by the system to retrieve a

  view/delegate pair for the page at the given index
Note:

This method must be overridden in derived classes. If called, this function will cause the application to crash.

Parameters:

  • page(Lang.Number)

    Index for the view/delegate pair

Returns:

Since:

API Level 3.4.0


Generated Apr 17, 2024 9:40:39 AM