Package com.dsi.ant.channel
Class AntContinuousScanController.ChannelEventDispatcher
java.lang.Object
com.dsi.ant.channel.AntContinuousScanController.ChannelEventDispatcher
- All Implemented Interfaces:
IAntChannelEventHandler
- Enclosing class:
AntContinuousScanController
public final class AntContinuousScanController.ChannelEventDispatcher
extends Object
implements IAntChannelEventHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
After this is called the channel object will be unusable.void
onReceiveMessage
(MessageFromAntType messageType, AntMessageParcel messageParcel) Receives ANT messages relating to this channel.
-
Constructor Details
-
ChannelEventDispatcher
public ChannelEventDispatcher()
-
-
Method Details
-
onReceiveMessage
Description copied from interface:IAntChannelEventHandler
Receives ANT messages relating to this channel. Implementations of this interface should construct the specific message object incom.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.
- Specified by:
onReceiveMessage
in interfaceIAntChannelEventHandler
- Parameters:
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.
-
onChannelDeath
public void onChannelDeath()Description copied from interface:IAntChannelEventHandler
After this is called the channel object will be unusable. All future calls on the channel object will fail. Once this function is called, the channel is already dead and there is no need to callAntChannel.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.- Specified by:
onChannelDeath
in interfaceIAntChannelEventHandler
-