Class: $.TestBurstListener

Inherits:
Ant.BurstListener show all

Overview

An extension of BurstListener that handles burst related events

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _burstStatistics as $.BurstStatistics

Instance Method Details

getBurstStatistics() as $.BurstStatistics

Get the burst statistics of this listener

Returns:

  • The burst statistics object

initialize()

Constructor

onReceiveComplete(burstPayload as Ant.BurstPayload) as Void

Callback when a burst reception completes successfully

Parameters:

  • burstPayload —

    The burst data received across the channel

onReceiveFail(errorCode as Ant.BurstError) as Void

Callback when a burst reception fails over the air

Parameters:

  • errorCode —

    The type of burst failure that occurred, see Ant.BURST_ERROR_XXX

onTransmitComplete() as Void

Callback when a burst transmission completes successfully

onTransmitFail(errorCode as Ant.BurstError) as Void

Callback when a burst transmission fails over the air

Parameters:

  • errorCode —

    The type of burst failure that occurred, see Ant.BURST_ERROR_XXX

printPayload(burstPayload as Ant.BurstPayload) as Void

Iterates over a burst payload to print each packet

Parameters:

  • burstPayload —

    The burst data to display


Generated Jun 9, 2026, 8:45:42 AM