Class: Toybox::AntPlus::DeviceListener

Inherits:
Lang::Object show all

Overview

Listener class for Device.

Since:

  • 2.2.0

Device States collapse

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Method Details

onBatteryStatusUpdate(data) ⇒ Object

Callback when battery status is received.

Parameters:

Since:

  • 2.2.0


16777
16778
# File 'Monkeybrains.rb', line 16777

def onBatteryStatusUpdate(data)
end

onDeviceStateUpdate(data) ⇒ Object

Callback when device state is updated.

Parameters:

Since:

  • 2.2.0


16797
16798
# File 'Monkeybrains.rb', line 16797

def onDeviceStateUpdate(data)
end

onManufacturerInfoUpdate(data) ⇒ Object

Callback when manufacturer's information is received.

Parameters:

Since:

  • 2.2.0


16784
16785
# File 'Monkeybrains.rb', line 16784

def onManufacturerInfoUpdate(data)
end

onMessage(msg) ⇒ Object

Callback when ANT message is received.

Parameters:

Since:

  • 3.1.0


16803
16804
# File 'Monkeybrains.rb', line 16803

def onMessage(msg)
end

onProductInfoUpdate(data) ⇒ Object

Callback when product information is received.

Parameters:

Since:

  • 2.2.0


16790
16791
# File 'Monkeybrains.rb', line 16790

def onProductInfoUpdate(data)
end

onSentMessage(status, sentMesgData) ⇒ Object

After sending a manufacturer message or page request this will be called to indicate message sent status.

Parameters:

Since:

  • 3.1.0


16816
16817
# File 'Monkeybrains.rb', line 16816

def onSentMessage(status, sentMesgData)
end