Class AntPlusLegacyCommonPcc
java.lang.Object
com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc
com.dsi.ant.plugins.antplus.pccbase.AntPlusLegacyCommonPcc
- Direct Known Subclasses:
AntPlusBikeSpdCadCommonPcc,AntPlusHeartRatePcc
Adds legacy common pages support to a PCC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceReceiver for the CumulativeOperatingTime event, which is: The cumulative operating time.static interfaceReceiver for the ManufacturerAndSerial event, which is: The manufacturer id and serial number of this device.classDefines the keys and values used to communicate between the PCC and plugin.static interfaceReceiver for the VersionAndModel event, which is: Version and model information.Nested classes/interfaces inherited from class com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc
AntPluginPcc.IDeviceStateChangeReceiver, AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>, AntPluginPcc.RequestAccessResultHandler<T extends AntPluginPcc>, AntPluginPcc.RequestAccessResultHandler_AsyncSearchByDevNumber<T extends AntPluginPcc>, AntPluginPcc.RequestAccessResultHandler_UI<T extends AntPluginPcc>, AntPluginPcc.StandardReleaseHandle<T extends AntPluginPcc> -
Field Summary
Fields inherited from class com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc
mReleaseHandle, mStateChangeReceiver, PATH_ANTPLUS_PLUGINS_PKG, reportedServiceVersion, supportsRssiEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandlePluginEvent(android.os.Message eventMsg) voidsubscribeCumulativeOperatingTimeEvent(AntPlusLegacyCommonPcc.ICumulativeOperatingTimeReceiver CumulativeOperatingTimeReceiver) Subscribe to receive CumulativeOperatingTime events, which contain: The cumulative operating time.voidsubscribeManufacturerAndSerialEvent(AntPlusLegacyCommonPcc.IManufacturerAndSerialReceiver ManufacturerAndSerialReceiver) Subscribe to receive ManufacturerAndSerial events, which contain: The manufacturer id and serial number of this device.booleansubscribeRssiEvent(AntPlusCommonPcc.IRssiReceiver RssiReceiver) Subscribe to receive Rssi events, which contain rssi signal strength data.voidsubscribeVersionAndModelEvent(AntPlusLegacyCommonPcc.IVersionAndModelReceiver VersionAndModelReceiver) Subscribe to receive VersionAndModel events, which contain: Version and model information.booleanMethods inherited from class com.dsi.ant.plugins.antplus.pccbase.AntPluginPcc
bindAndRequest, closePluginConnection, createCmdMsg, getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, getPluginPrintableName, getRequiredServiceVersionForBind, getServiceBindIntent, handleNonCmdPluginMessage, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, requestAccess_Helper_AsyncScanController, requestAccess_Helper_AsyncSearchByDevNumber, requestAccess_Helper_Main, requestAccess_Helper_SearchActivity, requestAccess_Helper_SubMain, requestAsyncScan_Helper_SubMain, sendPluginCommand, sendPluginCommand, startPluginManagerActivity, subscribeToEvent, unsubscribeFromEvent
-
Constructor Details
-
AntPlusLegacyCommonPcc
public AntPlusLegacyCommonPcc()
-
-
Method Details
-
handlePluginEvent
protected void handlePluginEvent(android.os.Message eventMsg) - Specified by:
handlePluginEventin classAntPluginPcc
-
subscribeCumulativeOperatingTimeEvent
public void subscribeCumulativeOperatingTimeEvent(AntPlusLegacyCommonPcc.ICumulativeOperatingTimeReceiver CumulativeOperatingTimeReceiver) Subscribe to receive CumulativeOperatingTime events, which contain: The cumulative operating time. This function can also be used to unsubscribe from an event, by passing null as the receiver.- Parameters:
CumulativeOperatingTimeReceiver- receiver to receive events (or null to unsubscribe from this event).
-
subscribeManufacturerAndSerialEvent
public void subscribeManufacturerAndSerialEvent(AntPlusLegacyCommonPcc.IManufacturerAndSerialReceiver ManufacturerAndSerialReceiver) Subscribe to receive ManufacturerAndSerial events, which contain: The manufacturer id and serial number of this device. This function can also be used to unsubscribe from an event, by passing null as the receiver.- Parameters:
ManufacturerAndSerialReceiver- receiver to receive events (or null to unsubscribe from this event).
-
subscribeVersionAndModelEvent
public void subscribeVersionAndModelEvent(AntPlusLegacyCommonPcc.IVersionAndModelReceiver VersionAndModelReceiver) Subscribe to receive VersionAndModel events, which contain: Version and model information. This function can also be used to unsubscribe from an event, by passing null as the receiver.- Parameters:
VersionAndModelReceiver- receiver to receive events (or null to unsubscribe from this event).
-
subscribeRssiEvent
Subscribe to receive Rssi events, which contain rssi signal strength data. This function can also be used to unsubscribe from an event, by passing null as the receiver.- Parameters:
RssiReceiver- receiver to receive events (or null to unsubscribe from this event).- Returns:
- true if successful
- Since:
- 3.2.3; requires Plugin Service 3.2.3+
-
supportsRssi
public boolean supportsRssi()
-