Class: $.ScanDataModel
- Inherits:
-
Toybox.Lang.Object
-
Toybox.Lang.Object
-
Overview
Instance Member Summary collapse
- _displayResult as Lang.Number
- _scanResults as Lang.Array<BluetoothLowEnergy.ScanResult>
Instance Method Summary collapse
-
getDisplayIndex() as Lang.Number
Get the current display index.
-
getDisplayResult() as BluetoothLowEnergy.ScanResult or Null
Get the current scan result.
-
getResultCount() as Lang.Number
Get the number of scan results.
-
initialize(bleDelegate as $.ThingyDelegate)
Constructor.
-
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.
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
getDisplayResult() as BluetoothLowEnergy.ScanResult or Null
Get the current scan result
getResultCount() as Lang.Number
Get the number of scan results
initialize(bleDelegate as $.ThingyDelegate)
Constructor
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