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 Type
    Method
    Description
    void
    onResultReceived(T result, RequestAccessResult resultCode, DeviceState initialDeviceState)
    Receives the result of an access request.
  • Method Details

    • onResultReceived

      void onResultReceived(T result, RequestAccessResult resultCode, DeviceState initialDeviceState)
      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 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.