public class AntPlusGenericRemoteControlPcc extends AntPlusBaseRemoteControlPcc
Modifier and Type | Class and Description |
---|---|
static interface |
AntPlusGenericRemoteControlPcc.IGenericCommandFinishedReceiver
Receiver for the GenericCommandFinished event, which is:
Receives the result of a sent generic command.
|
class |
AntPlusGenericRemoteControlPcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
AntPlusBaseRemoteControlPcc.ControlDeviceCapabilities, AntPlusBaseRemoteControlPcc.IControlDeviceAvailabilityReceiver, AntPlusBaseRemoteControlPcc.IRemoteControlAsyncScanResultReceiver, AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<T extends AntPlusBaseRemoteControlPcc>, AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanResultDeviceInfo
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<AntPlusGenericRemoteControlPcc> |
requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes,
Context bindToContext,
int antDeviceNumber,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusGenericRemoteControlPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
void |
RequestGenericCommand(AntPlusGenericRemoteControlPcc.IGenericCommandFinishedReceiver genericCommandFinishedReceiver,
GenericCommandNumber commandNumber)
Commands sent by a remote control to initiate an action on a generic controllable device.
|
void |
RequestGenericCommandSequence(byte[] rawCommandBytes)
Burst commands sent by a remote control to initiate an action on a generic controllable device.
|
static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusGenericRemoteControlPcc> |
requestRemoteControlAsyncScanController(java.util.EnumSet<ControlsMode> requestModes,
Context bindToContext,
int searchProximityThreshold,
AntPlusBaseRemoteControlPcc.IRemoteControlAsyncScanResultReceiver scanResultReceiver)
Sends a request to the plugin to start an asynchronous search for available devices.
|
subscribeControlDeviceAvailabilityEvent
requestCommonDataPage, subscribeBatteryStatusEvent, subscribeManufacturerIdentificationEvent, subscribeManufacturerSpecificDataEvent, subscribeProductInformationEvent, subscribeRssiEvent, supportsRssi
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusGenericRemoteControlPcc> requestRemoteControlAsyncScanController(java.util.EnumSet<ControlsMode> requestModes, Context bindToContext, int searchProximityThreshold, AntPlusBaseRemoteControlPcc.IRemoteControlAsyncScanResultReceiver scanResultReceiver)
AudioRemoteAsyncScanner
.requestModes
- The modes that found devices must be capable of in order to be used.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.AudioRemoteAsyncScanner
.public static PccReleaseHandle<AntPlusGenericRemoteControlPcc> requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes, Context bindToContext, int antDeviceNumber, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusGenericRemoteControlPcc> resultReceiver, AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
requestModes
- A set containing the desired ControlsMode
that must match the capabilities of found devices in order to connect.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 void RequestGenericCommand(AntPlusGenericRemoteControlPcc.IGenericCommandFinishedReceiver genericCommandFinishedReceiver, GenericCommandNumber commandNumber)
volumeIncrement
- The percentage amount of volume increase/decrease.public void RequestGenericCommandSequence(byte[] rawCommandBytes)
rawCommandBytes
- The raw byte contents of a list of generic commands.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.