Interface AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
- Type Parameters:
T- The type of PCC returned by this result receiver.
- Enclosing class:
- AntPluginPcc
public static interface AntPluginPcc.IPluginAccessResultReceiver<T extends AntPluginPcc>
Allows clients to receive the results from all the access request functions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonResultReceived(T result, RequestAccessResult resultCode, DeviceState initialDeviceState) Receives the result of an access request.
-
Method Details
-
onResultReceived
Receives the result of an access request.- Parameters:
result- The PCC object to access the requested device, if access was successful. Note: Every PCC obtained here should callAntPluginPcc.releaseAccess()when it is no longer in use or the calling application is closing.resultCode- The result code as defined inRequestAccessResult.initialDeviceState- TheDeviceStateof the initial state of the device at the time it was accessed. Any subsequent changes to the device state will be sent on theAntPluginPcc.IDeviceStateChangeReceiver.
-