public class AntPlusAudioRemoteControlPcc extends AntPlusBaseRemoteControlPcc
Modifier and Type | Class and Description |
---|---|
static interface |
AntPlusAudioRemoteControlPcc.IAudioCommandFinishedReceiver
Receiver for the AudioCommandFinished event, which is:
Receives the result of a sent audio command.
|
static interface |
AntPlusAudioRemoteControlPcc.IAudioStatusReceiver
Receiver for the AudioStatus event, which is:
Communicates the status of an audio device.
|
class |
AntPlusAudioRemoteControlPcc.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<AntPlusAudioRemoteControlPcc> |
requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes,
Context bindToContext,
int antDeviceNumber,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusAudioRemoteControlPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
void |
RequestAudioCommand(AntPlusAudioRemoteControlPcc.IAudioCommandFinishedReceiver audioCommandFinishedReceiver,
AudioVideoCommandNumber commandNumber)
Commands sent by a remote control to initiate an action on an audio device.
|
void |
RequestAudioCommand(AntPlusAudioRemoteControlPcc.IAudioCommandFinishedReceiver audioCommandFinishedReceiver,
AudioVideoCommandNumber commandNumber,
int commandData)
Commands sent by a remote control to initiate an action on an audio device.
|
static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusAudioRemoteControlPcc> |
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.
|
void |
subscribeAudioStatusEvent(AntPlusAudioRemoteControlPcc.IAudioStatusReceiver AudioStatusReceiver)
Subscribe to receive AudioStatus events, which contain:
Communicates the status of an audio device.
|
subscribeControlDeviceAvailabilityEvent
requestCommonDataPage, subscribeBatteryStatusEvent, subscribeManufacturerIdentificationEvent, subscribeManufacturerSpecificDataEvent, subscribeProductInformationEvent, subscribeRssiEvent, supportsRssi
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusAudioRemoteControlPcc> 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 connect.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<AntPlusAudioRemoteControlPcc> requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes, Context bindToContext, int antDeviceNumber, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusAudioRemoteControlPcc> 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 subscribeAudioStatusEvent(AntPlusAudioRemoteControlPcc.IAudioStatusReceiver AudioStatusReceiver)
AudioStatusReceiver
- receiver to receive events (or null to unsubscribe from this event).public void RequestAudioCommand(AntPlusAudioRemoteControlPcc.IAudioCommandFinishedReceiver audioCommandFinishedReceiver, AudioVideoCommandNumber commandNumber, int commandData)
commandData
- Indicates additional parameters of the command.commandNumber
- The requested AudioVideoCommandNumber
.public void RequestAudioCommand(AntPlusAudioRemoteControlPcc.IAudioCommandFinishedReceiver audioCommandFinishedReceiver, AudioVideoCommandNumber commandNumber)
commandNumber
- The requested AudioVideoCommandNumber
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.