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


16750
16751
# File 'Monkeybrains.rb', line 16750

def onBatteryStatusUpdate(data)
end

onDeviceStateUpdate(data) ⇒ Object

Callback when device state is updated.

Parameters:

Since:

  • 2.2.0


16770
16771
# File 'Monkeybrains.rb', line 16770

def onDeviceStateUpdate(data)
end

onManufacturerInfoUpdate(data) ⇒ Object

Callback when manufacturer's information is received.

Parameters:

Since:

  • 2.2.0


16757
16758
# File 'Monkeybrains.rb', line 16757

def onManufacturerInfoUpdate(data)
end

onMessage(msg) ⇒ Object

Callback when ANT message is received.

Parameters:

Since:

  • 3.1.0


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

def onMessage(msg)
end

onProductInfoUpdate(data) ⇒ Object

Callback when product information is received.

Parameters:

Since:

  • 2.2.0


16763
16764
# File 'Monkeybrains.rb', line 16763

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


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

def onSentMessage(status, sentMesgData)
end