T - The type of PCC returned by this result receiver.public static interface AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
| Modifier and Type | Method and Description |
|---|---|
void |
onResultReceived(T result,
RequestAccessResult resultCode,
DeviceState initialDeviceState)
Receives the result of an access request.
|
void onResultReceived(T result, RequestAccessResult resultCode, DeviceState initialDeviceState)
result - The PCC object to access the requested device, if access was successful.
Note: Every PCC obtained here should call AntPluginPcc.releaseAccess() when it is
no longer in use or the calling application is closing.resultCode - The result code as defined in RequestAccessResult.initialDeviceState - The DeviceState of the initial
state of the device at the time it was accessed. Any subsequent changes to the device state
will be sent on the AntPluginPcc.IDeviceStateChangeReceiver.Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.