Class: $.ThingyDelegate

Inherits:
BluetoothLowEnergy.BleDelegate show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _onCharWrite as Lang.WeakReference or Null

var _onConnection 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

Parameters:

  • scanResult —

    The new scan result

contains(iter as BluetoothLowEnergy.Iterator, obj as BluetoothLowEnergy.Uuid) as Lang.Boolean

Get whether the iterator contains a specific uuid

Parameters:

  • iter —

    Iterator of uuid objects

  • obj —

    Uuid to search for

Returns:

  • true if object found, false otherwise

initialize(profileManager as $.ProfileManager)

Constructor

Parameters:

  • profileManager —

    The profile manager

notifyCharWrite(manager as $.DeviceManager) as Void

Store a new manager to handle characteristic writes

Parameters:

  • manager —

    The manager for characteristics

notifyConnection(manager as $.DeviceManager) as Void

Store a new manager to manage device connections

Parameters:

  • manager —

    The manager for devices

notifyScanResult(manager as $.DeviceManager) as Void

Store a new manager to manage scan results

Parameters:

  • manager —

    The manager of the scan results

onCharacteristicWrite(characteristic as BluetoothLowEnergy.Characteristic, status as BluetoothLowEnergy.Status) as Void

Handle the completion of a write operation on a characteristic

Parameters:

  • characteristic —

    The characteristic that was written

  • status —

    The BluetoothLowEnergy status indicating the result of the operation

onConnectedStateChanged(device as BluetoothLowEnergy.Device, state as BluetoothLowEnergy.ConnectionState) as Void

Handle pairing and connecting to a device

Parameters:

  • device —

    The device state that was changed

  • state —

    The state of the connection

onScanResults(scanResults as BluetoothLowEnergy.Iterator) as Void

Handle new Scan Results being received

Parameters:

  • scanResults —

    An iterator of new scan result objects


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