Class: Toybox.AntPlus.DeviceListener
- Inherits:
-
Toybox.Lang.Object
Overview
Listener class for Device.
Direct Known Subclasses
AntPlus.BikeCadenceListener, AntPlus.BikePowerListener, AntPlus.BikeRadarListener, AntPlus.BikeSpeedCadenceListener, AntPlus.BikeSpeedListener, AntPlus.FitnessEquipmentListener, AntPlus.LightNetworkListener, AntPlus.RunningDynamicsListener, AntPlus.ShiftingListener
Instance Method Summary collapse
-
onBatteryStatusUpdate(data as AntPlus.BatteryStatus) as Void
Callback when battery status is received.
-
onDeviceStateUpdate(data as AntPlus.DeviceState) as Void
Callback when device state is updated.
-
onManufacturerInfoUpdate(data as AntPlus.ManufacturerInfo) as Void
Callback when manufacturer's information is received.
-
onMessage(msg as Ant.Message) as Void
Callback when ANT message is received.
-
onProductInfoUpdate(data as AntPlus.ProductInfo) as Void
Callback when product information is received.
-
onSentMessage(status as AntPlus.MessageSendStatus, sentMesgData as { :messageType as AntPlus.MessageType, :pageNumber as Lang.Number }) as Void
After sending a manufacturer message or page request this will be called to indicate message sent status.
Instance Method Details
onBatteryStatusUpdate(data as AntPlus.BatteryStatus) as Void
Callback when battery status is received.
onDeviceStateUpdate(data as AntPlus.DeviceState) as Void
Callback when device state is updated.
onManufacturerInfoUpdate(data as AntPlus.ManufacturerInfo) as Void
Callback when manufacturer's information is received.
onMessage(msg as Ant.Message) as Void
Callback when ANT message is received.
onProductInfoUpdate(data as AntPlus.ProductInfo) as Void
Callback when product information is received.
onSentMessage(status as AntPlus.MessageSendStatus, sentMesgData as { :messageType as AntPlus.MessageType, :pageNumber as Lang.Number }) as Void
After sending a manufacturer message or page request this will be called to indicate message sent status.