public final class AntContinuousScanController.ChannelEventDispatcher extends java.lang.Object implements IAntChannelEventHandler
Constructor and Description |
---|
AntContinuousScanController.ChannelEventDispatcher() |
Modifier and Type | Method and Description |
---|---|
void |
onChannelDeath()
After this is called the channel object will be unusable.
|
void |
onReceiveMessage(MessageFromAntType messageType,
AntMessageParcel messageParcel)
Receives ANT messages relating to this channel.
|
public AntContinuousScanController.ChannelEventDispatcher()
public void onReceiveMessage(MessageFromAntType messageType, AntMessageParcel messageParcel)
IAntChannelEventHandler
com.dsi.ant.message.fromant
for the
message type. Each message class provides direct access to the contained values.
More details on ANT messages, and their contents can be found in the ANT Message Protocol and Usage document.
onReceiveMessage
in interface IAntChannelEventHandler
messageType
- The unique identifier for the type of message.messageParcel
- The parceled ANT message received from the ANT Radio Service. This is
simply the most basic representation of an ANT Message: Message ID and Message Content.public void onChannelDeath()
IAntChannelEventHandler
AntChannel.release()
.
Since this may or may not be called in conjunction with RemoteExceptions of the channel
methods it is suggested to use a common handling routine with handling those exceptions.onChannelDeath
in interface IAntChannelEventHandler
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.