public class AntPlusVideoRemoteControlPcc extends AntPlusBaseRemoteControlPcc
Modifier and Type | Class and Description |
---|---|
class |
AntPlusVideoRemoteControlPcc.IpcDefines
Defines the keys and values used to communicate between the PCC and plugin.
|
static interface |
AntPlusVideoRemoteControlPcc.IVideoCommandFinishedReceiver
Receiver for the VideoCommandFinished event, which is:
Receives the result of a sent video command.
|
static interface |
AntPlusVideoRemoteControlPcc.IVideoStatusReceiver
Receiver for the VideoStatus event, which is:
Communicates the status of a video device.
|
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<AntPlusVideoRemoteControlPcc> |
requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes,
Context bindToContext,
int antDeviceNumber,
int searchProximityThreshold,
AntPluginPcc.IPluginAccessResultReceiver<AntPlusVideoRemoteControlPcc> resultReceiver,
AntPluginPcc.IDeviceStateChangeReceiver stateReceiver)
Sends a request to the plugin to access a device and receive a live PCC instance.
|
static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusVideoRemoteControlPcc> |
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 |
RequestVideoCommand(AntPlusVideoRemoteControlPcc.IVideoCommandFinishedReceiver videoCommandFinishedReceiver,
AudioVideoCommandNumber commandNumber)
Commands sent by a remote control to initiate an action on a video device.
|
void |
RequestVideoCommand(AntPlusVideoRemoteControlPcc.IVideoCommandFinishedReceiver videoCommandFinishedReceiver,
AudioVideoCommandNumber commandNumber,
int commandData)
Commands sent by a remote control to initiate an action on a video device.
|
void |
subscribeVideoStatusEvent(AntPlusVideoRemoteControlPcc.IVideoStatusReceiver VideoStatusReceiver)
Subscribe to receive VideoStatus events, which contain:
Communicates the status of a video device.
|
subscribeControlDeviceAvailabilityEvent
requestCommonDataPage, subscribeBatteryStatusEvent, subscribeManufacturerIdentificationEvent, subscribeManufacturerSpecificDataEvent, subscribeProductInformationEvent, subscribeRssiEvent, supportsRssi
getAntDeviceNumber, getCurrentDeviceState, getDeviceName, getInstalledPluginsVersionNumber, getInstalledPluginsVersionString, getMissingDependencyName, getMissingDependencyPackageName, isUserPreferredDeviceForPlugin, isUserRecognizedDevice, releaseAccess, startPluginManagerActivity
public static AntPlusBaseRemoteControlPcc.RemoteControlAsyncScanController<AntPlusVideoRemoteControlPcc> 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<AntPlusVideoRemoteControlPcc> requestAccessByDeviceNumber(java.util.EnumSet<ControlsMode> requestModes, Context bindToContext, int antDeviceNumber, int searchProximityThreshold, AntPluginPcc.IPluginAccessResultReceiver<AntPlusVideoRemoteControlPcc> 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 subscribeVideoStatusEvent(AntPlusVideoRemoteControlPcc.IVideoStatusReceiver VideoStatusReceiver)
VideoStatusReceiver
- receiver to receive events (or null to unsubscribe from this event).public void RequestVideoCommand(AntPlusVideoRemoteControlPcc.IVideoCommandFinishedReceiver videoCommandFinishedReceiver, AudioVideoCommandNumber commandNumber, int commandData)
volumeIncrement
- The percentage amount of volume increase/decrease.commandNumber
- The requested AudioVideoCommandNumber
.public void RequestVideoCommand(AntPlusVideoRemoteControlPcc.IVideoCommandFinishedReceiver videoCommandFinishedReceiver, AudioVideoCommandNumber commandNumber)
volumeIncrement
- The percentage amount of volume increase/decrease.commandNumber
- The requested AudioVideoCommandNumber
.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.