Class: $.ScanDataModel

Inherits:
Toybox.Lang.Object show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _displayResult as Lang.Number

var _scanResults as Lang.Array<BluetoothLowEnergy.ScanResult>

Instance Method Details

getDisplayIndex() as Lang.Number

Get the current display index

Returns:

  • The display index

getDisplayResult() as BluetoothLowEnergy.ScanResult or Null

Get the current scan result

Returns:

  • The current scan result

getResultCount() as Lang.Number

Get the number of scan results

Returns:

  • The number of scan results

initialize(bleDelegate as $.ThingyDelegate)

Constructor

Parameters:

  • bleDelegate —

    The BLE delegate for this model

nextResult() as Void

Update display to next result

previousResult() as Void

Update display to previous result

procScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void

Process a new scan result

Parameters:

  • scanResult —

    The new scan result


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