public abstract class AntPlusCommonPcc extends AntPluginPcc
Modifier and Type | Class and Description |
---|---|
static class |
AntPlusCommonPcc.CommonDataPage
ANT+ Common Data Pages
|
static interface |
AntPlusCommonPcc.IBatteryStatusReceiver
Receiver for the BatteryStatus event, which is:
Information about the battery status and operating time.
|
static interface |
AntPlusCommonPcc.IManufacturerIdentificationReceiver
Receiver for the ManufacturerIdentification event, which is:
Information about the manufacturer and hardware.
|
static interface |
AntPlusCommonPcc.IManufacturerSpecificDataReceiver
Receiver for the ManufacturerSpecificData event, which is:
Manufacturer specific data.
|
class |
AntPlusCommonPcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
static interface |
AntPlusCommonPcc.IProductInformationReceiver
Receiver for the ProductInformation event, which is:
Information about the product and software.
|
static interface |
AntPlusCommonPcc.IRequestFinishedReceiver
Receiver for the RequestFinished event, which is:
Final result of the command requested.
|
static interface |
AntPlusCommonPcc.IRssiReceiver
Receiver for the rssi event, which is:
Rssi of received messages.
|
AntPluginPcc.IDeviceStateChangeReceiver, AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
PATH_ANTPLUS_PLUGINS_PKG
Constructor and Description |
---|
AntPlusCommonPcc() |
Modifier and Type | Method and Description |
---|---|
boolean |
requestCommonDataPage(AntPlusCommonPcc.CommonDataPage commonDataPage,
AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
Send a request to the device to send the requested
AntPlusCommonPcc.CommonDataPage . |
void |
subscribeBatteryStatusEvent(AntPlusCommonPcc.IBatteryStatusReceiver BatteryStatusReceiver)
Subscribe to receive BatteryStatus events, which contain:
Information about the battery status and operating time.
|
void |
subscribeManufacturerIdentificationEvent(AntPlusCommonPcc.IManufacturerIdentificationReceiver ManufacturerIdentificationReceiver)
Subscribe to receive ManufacturerIdentification events, which contain:
Information about the manufacturer and hardware.
|
boolean |
subscribeManufacturerSpecificDataEvent(AntPlusCommonPcc.IManufacturerSpecificDataReceiver ManufacturerSpecificDataReceiver)
Subscribe to receive ManufacturerSpecificData events, which contain:
Manufacturer specific data.
|
void |
subscribeProductInformationEvent(AntPlusCommonPcc.IProductInformationReceiver ProductInformationReceiver)
Subscribe to receive ProductInformation events, which contain:
Information about the product and software.
|
boolean |
subscribeRssiEvent(AntPlusCommonPcc.IRssiReceiver RssiReceiver)
Subscribe to receive Rssi events, which contain rssi signal strength data.
|
boolean |
supportsRssi() |
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public void subscribeManufacturerIdentificationEvent(AntPlusCommonPcc.IManufacturerIdentificationReceiver ManufacturerIdentificationReceiver)
ManufacturerIdentificationReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeProductInformationEvent(AntPlusCommonPcc.IProductInformationReceiver ProductInformationReceiver)
ProductInformationReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeBatteryStatusEvent(AntPlusCommonPcc.IBatteryStatusReceiver BatteryStatusReceiver)
BatteryStatusReceiver
- receiver to receive events (or null to unsubscribe from this event).public boolean subscribeManufacturerSpecificDataEvent(AntPlusCommonPcc.IManufacturerSpecificDataReceiver ManufacturerSpecificDataReceiver)
ManufacturerSpecificDataReceiver
- receiver to receive events (or
null to unsubscribe from this event).public boolean subscribeRssiEvent(AntPlusCommonPcc.IRssiReceiver RssiReceiver)
RssiReceiver
- receiver to receive events (or
null to unsubscribe from this event).public boolean requestCommonDataPage(AntPlusCommonPcc.CommonDataPage commonDataPage, AntPlusCommonPcc.IRequestFinishedReceiver requestFinishedReceiver)
AntPlusCommonPcc.CommonDataPage
.
This command is optional and may not be supported by all devices. If it is unsupported the device will not respond.commonDataPage
- The AntPlusCommonPcc.CommonDataPage
to be requested from the device.requestFinishedReceiver
- Receiver for the results of the command request.public boolean supportsRssi()
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.