Class: Toybox.Sensor.SensorDelegate
- Inherits:
-
Toybox.Lang.Object
Overview
Delegate for handling native sensor pairing process.
The members of this object get called by the system to delegate scanning and pairing of different sensors.
Instance Method Summary collapse
-
onPair(sensor as Sensor.SensorInfo) as Lang.Boolean
Pair the sensor.
-
onScan() as Lang.Boolean
Start the sensor scan process.
-
onUnpair(sensor as Sensor.SensorInfo) as Lang.Boolean
Unpair the sensor.
-
pairingRequired() as Lang.Boolean
Is sensor pairing required? Is called by the system to check if sensor pairing is required.
Instance Method Details
onPair(sensor as Sensor.SensorInfo) as Lang.Boolean
Pair the sensor.
Is called by the system to pair the sensor, during the native sensor pairing process.
onScan() as Lang.Boolean
Start the sensor scan process.
Is called by the system to start the sensor scan process, during the native sensor pairing process.
onUnpair(sensor as Sensor.SensorInfo) as Lang.Boolean
Unpair the sensor.
Is called by the system to unpair the sensor, during the native sensor removing process.
pairingRequired() as Lang.Boolean
Is sensor pairing required?
Is called by the system to check if sensor pairing is required.