Class: Toybox.WatchUi.ViewLoopFactory
- Inherits:
-
Toybox.Lang.Object
Overview
A factory object for view/delegate instances, used by ViewLoop
Instance Method Summary collapse
-
getSize() as Lang.Number
Return the number of view/delegate pairs that are managed by this factory.
-
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.
Instance Method Details
getSize() as Lang.Number
Return the number of view/delegate pairs that are managed by this factory
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.