Class: $.ViewController

Inherits:
Toybox.Lang.Object show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _modelFactory as $.DataModelFactory

Instance Method Details

getDeviceView(scanResult as BluetoothLowEnergy.ScanResult) as [ WatchUi.Views, WatchUi.InputDelegates ]

Get the device view and delegate

Parameters:

  • scanResult —

    The scan result to use for the device view

Returns:

  • Array Pair [View, InputDelegate] the device view and its input delegate

getInitialView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]

Return the initial views for the app

Returns:

  • Array Pair [View, InputDelegate]

initialize(modelFactory as $.DataModelFactory)

Constructor

Parameters:

  • modelFactory —

    Factory to create models

pushDeviceView(scanResult as BluetoothLowEnergy.ScanResult) as Void

Push the device view

Parameters:

  • scanResult —

    The scan result for the device view to push

pushScanMenu() as Void

Push the scan menu view


Generated Oct 20, 2026, 8:20:51 AM