Class: $.ThingyDelegate
- Inherits:
-
BluetoothLowEnergy.BleDelegate
-
BluetoothLowEnergy.BleDelegate
-
Overview
Instance Member Summary collapse
- _onCharChanged as Lang.WeakReference or Null
- _onConnection as Lang.WeakReference or Null
- _onDescriptorWrite as Lang.WeakReference or Null
- _onScanResult as Lang.WeakReference or Null
- _profileManager as $.ProfileManager
Instance Method Summary collapse
-
broadcastScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void
Broadcast a new scan result.
-
contains(iter as BluetoothLowEnergy.Iterator, obj as BluetoothLowEnergy.Uuid) as Lang.Boolean
Get whether the iterator contains a specific uuid.
-
initialize(profileManager as $.ProfileManager)
Constructor.
-
notifyCharacteristicChanged(model as $.EnvironmentProfileModel) as Void
Store a new model to handle characteristic changes.
-
notifyConnection(model as $.ConnectionInterface) as Void
Store a new model to manage device data connections.
-
notifyDescriptorWrite(model as $.EnvironmentProfileModel) as Void
Store a new model to handle descriptor writes.
-
notifyScanResult(model as $.ScanInterface) as Void
Store a new model to manage scan results.
-
onCharacteristicChanged(char as BluetoothLowEnergy.Characteristic, value as Lang.ByteArray) as Void
Handle a characteristic being changed.
-
onConnectedStateChanged(device as BluetoothLowEnergy.Device, state as BluetoothLowEnergy.ConnectionState) as Void
Handle pairing and connecting to a device.
-
onDescriptorWrite(descriptor as BluetoothLowEnergy.Descriptor, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a descriptor.
-
onScanResults(scanResults as BluetoothLowEnergy.Iterator) as Void
Handle new scan results being received.
Instance Attribute Details
var _onCharChanged as Lang.WeakReference or Null
var _onConnection as Lang.WeakReference or Null
var _onDescriptorWrite as Lang.WeakReference or Null
var _onScanResult as Lang.WeakReference or Null
var _profileManager as $.ProfileManager
Instance Method Details
broadcastScanResult(scanResult as BluetoothLowEnergy.ScanResult) as Void
Broadcast a new scan result
contains(iter as BluetoothLowEnergy.Iterator, obj as BluetoothLowEnergy.Uuid) as Lang.Boolean
Get whether the iterator contains a specific uuid
initialize(profileManager as $.ProfileManager)
Constructor
notifyCharacteristicChanged(model as $.EnvironmentProfileModel) as Void
Store a new model to handle characteristic changes
notifyConnection(model as $.ConnectionInterface) as Void
Store a new model to manage device data connections
notifyDescriptorWrite(model as $.EnvironmentProfileModel) as Void
Store a new model to handle descriptor writes
notifyScanResult(model as $.ScanInterface) as Void
Store a new model to manage scan results
onCharacteristicChanged(char as BluetoothLowEnergy.Characteristic, value as Lang.ByteArray) as Void
Handle a characteristic being changed
onConnectedStateChanged(device as BluetoothLowEnergy.Device, state as BluetoothLowEnergy.ConnectionState) as Void
Handle pairing and connecting to a device
onDescriptorWrite(descriptor as BluetoothLowEnergy.Descriptor, status as BluetoothLowEnergy.Status) as Void
Handle the completion of a write operation on a descriptor
onScanResults(scanResults as BluetoothLowEnergy.Iterator) as Void
Handle new scan results being received