public class AntPlusStrideSdmPcc extends AntPlusCommonPcc
Modifier and Type | Class and Description |
---|---|
static interface |
AntPlusStrideSdmPcc.ICalorieDataReceiver
Receiver for the CalorieData event, which is:
The total calories consumed over the session.
|
static interface |
AntPlusStrideSdmPcc.IComputationTimestampReceiver
Receiver for the ComputationTimestamp event, which is:
Data about the timing of the last speed and distance computation.
|
static interface |
AntPlusStrideSdmPcc.IDataLatencyReceiver
Receiver for the DataLatency event, which is:
The sensor reported latency between calculation and sensor transmission.
|
static interface |
AntPlusStrideSdmPcc.IDistanceReceiver
Receiver for the Distance event, which is:
The total distance travelled since the plugin connected to this device.
|
static interface |
AntPlusStrideSdmPcc.IInstantaneousCadenceReceiver
Receiver for the InstantaneousCadence event, which is:
The instantaneous cadence data.
|
static interface |
AntPlusStrideSdmPcc.IInstantaneousSpeedReceiver
Receiver for the InstantaneousSpeed event, which is:
The instantaneous speed data.
|
class |
AntPlusStrideSdmPcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
static interface |
AntPlusStrideSdmPcc.ISensorStatusReceiver
Receiver for the SensorStatus event, which is:
Various status information about the sensor.
|
static interface |
AntPlusStrideSdmPcc.IStrideCountReceiver
Receiver for the StrideCount event, which is:
The cumulative stride count since the plugin connected to this device.
|
static class |
AntPlusStrideSdmPcc.SensorHealth
Reported health of sensor.
|
static class |
AntPlusStrideSdmPcc.SensorLocation
Reported location of sensor.
|
static class |
AntPlusStrideSdmPcc.SensorUseState
Reported state of use of sensor
|
AntPlusCommonPcc.CommonDataPage, AntPlusCommonPcc.IBatteryStatusReceiver, AntPlusCommonPcc.IManufacturerIdentificationReceiver, AntPlusCommonPcc.IManufacturerSpecificDataReceiver, AntPlusCommonPcc.IProductInformationReceiver, AntPlusCommonPcc.IRequestFinishedReceiver, AntPlusCommonPcc.IRssiReceiver
AntPluginPcc.IDeviceStateChangeReceiver, AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
PATH_ANTPLUS_PLUGINS_PKG
Modifier and Type | Method and Description |
---|---|
static PccReleaseHandle<AntPlusStrideSdmPcc> |
requestAccess(Activity userActivity,
Context bindToContext,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static PccReleaseHandle<AntPlusStrideSdmPcc> |
requestAccess(Activity userActivity,
Context bindToContext,
boolean skipPreferredSearch,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static PccReleaseHandle<AntPlusStrideSdmPcc> |
requestAccess(Context bindToContext,
int antDeviceNumber,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static AsyncScanController<AntPlusStrideSdmPcc> |
requestAsyncScanController(Context bindToContext,
int searchProximityThreshold,
AsyncScanController.IAsyncScanResultReceiver scanResultReceiver)
Sends a request to the plugin to start an asynchronous search for available devices.
|
void |
subscribeCalorieDataEvent(AntPlusStrideSdmPcc.ICalorieDataReceiver CalorieDataReceiver)
Subscribe to receive CalorieData events, which contain:
The total calories consumed over the session.
|
void |
subscribeComputationTimestampEvent(AntPlusStrideSdmPcc.IComputationTimestampReceiver ComputationTimestampReceiver)
Subscribe to receive ComputationTimestamp events, which contain:
Data about the timing of the last speed and distance computation.
|
void |
subscribeDataLatencyEvent(AntPlusStrideSdmPcc.IDataLatencyReceiver DataLatencyReceiver)
Subscribe to receive DataLatency events, which contain:
The sensor reported latency between calculation and sensor transmission.
|
void |
subscribeDistanceEvent(AntPlusStrideSdmPcc.IDistanceReceiver DistanceReceiver)
Subscribe to receive Distance events, which contain:
The total distance travelled since the plugin connected to this device.
|
void |
subscribeInstantaneousCadenceEvent(AntPlusStrideSdmPcc.IInstantaneousCadenceReceiver InstantaneousCadenceReceiver)
Subscribe to receive InstantaneousCadence events, which contain:
The instantaneous cadence data.
|
void |
subscribeInstantaneousSpeedEvent(AntPlusStrideSdmPcc.IInstantaneousSpeedReceiver InstantaneousSpeedReceiver)
Subscribe to receive InstantaneousSpeed events, which contain:
The instantaneous speed data.
|
void |
subscribeSensorStatusEvent(AntPlusStrideSdmPcc.ISensorStatusReceiver SensorStatusReceiver)
Subscribe to receive SensorStatus events, which contain:
Various status information about the sensor.
|
void |
subscribeStrideCountEvent(AntPlusStrideSdmPcc.IStrideCountReceiver StrideCountReceiver)
Subscribe to receive StrideCount events, which contain:
The cumulative stride count since the plugin connected to this device.
|
requestCommonDataPage, subscribeBatteryStatusEvent, subscribeManufacturerIdentificationEvent, subscribeManufacturerSpecificDataEvent, subscribeProductInformationEvent, subscribeRssiEvent, supportsRssi
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static PccReleaseHandle<AntPlusStrideSdmPcc> requestAccess(Activity userActivity, Context bindToContext, boolean skipPreferredSearch, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
userActivity
- The current foreground activity. Used to display search progress and results.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.skipPreferredSearch
- True = Don't automatically connect to user's preferred device, but always go to search for other devices.searchProximityThreshold
- It is recommended to always use -1 to use the user's default settings unless your application
has a specific reason to do otherwise. This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength threshold from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search and -1 = use plugin user-specified default.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static PccReleaseHandle<AntPlusStrideSdmPcc> requestAccess(Activity userActivity, Context bindToContext, AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
#requestAccess(Activity, Context, boolean, int, IPluginAccessResultReceiver, IDeviceStateChangeReceiver)
with skipPreferrredSearch=false and searchProximityThreshold=-1(user default).
userActivity
- The current foreground activity. Used to display search progress and results.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static PccReleaseHandle<AntPlusStrideSdmPcc> requestAccess(Context bindToContext, int antDeviceNumber, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusStrideSdmPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.antDeviceNumber
- DeviceNumber to attempt to connect to. A deviceNumber of 0 indicates a desire to connect to first available device.searchProximityThreshold
- This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength threshold from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search.resultReceiver
- The receiver to receive the results of the request. Possible returns include:
stateReceiver
- The receiver to receive the state updates of the accessed device, assuming the request is successful.
This receiver will receive notifications of all state changes to the device that occur subsequent
to the initial state returned in the result receiver.public static AsyncScanController<AntPlusStrideSdmPcc> requestAsyncScanController(Context bindToContext, int searchProximityThreshold, AsyncScanController.IAsyncScanResultReceiver scanResultReceiver)
AsyncScanController
.bindToContext
- The context to which the plugin will be bound. Used for plugin lifecycle management.searchProximityThreshold
- This value represents the signal strength 'proximity' requirement on finding matches
during searching, if a device does not meet the requirements it will not show up in the search at all.
The value is a generic signal strength rating from 1-10 where 1 is the strongest (ie: closest) and 10 is the lowest(ie: farthest away).
0 = don't use proximity search.scanResultReceiver
- The receiver to receive the info for available devices and status of the scan.AsyncScanController
.public void subscribeInstantaneousSpeedEvent(AntPlusStrideSdmPcc.IInstantaneousSpeedReceiver InstantaneousSpeedReceiver)
InstantaneousSpeedReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeInstantaneousCadenceEvent(AntPlusStrideSdmPcc.IInstantaneousCadenceReceiver InstantaneousCadenceReceiver)
InstantaneousCadenceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeDistanceEvent(AntPlusStrideSdmPcc.IDistanceReceiver DistanceReceiver)
DistanceReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeStrideCountEvent(AntPlusStrideSdmPcc.IStrideCountReceiver StrideCountReceiver)
StrideCountReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeComputationTimestampEvent(AntPlusStrideSdmPcc.IComputationTimestampReceiver ComputationTimestampReceiver)
ComputationTimestampReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeDataLatencyEvent(AntPlusStrideSdmPcc.IDataLatencyReceiver DataLatencyReceiver)
DataLatencyReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeCalorieDataEvent(AntPlusStrideSdmPcc.ICalorieDataReceiver CalorieDataReceiver)
CalorieDataReceiver
- receiver to receive events (or null to unsubscribe from this event).public void subscribeSensorStatusEvent(AntPlusStrideSdmPcc.ISensorStatusReceiver SensorStatusReceiver)
SensorStatusReceiver
- receiver to receive events (or null to unsubscribe from this event).Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.