Interface AgentFeatureButtonLampCompletionHandler


  • public interface AgentFeatureButtonLampCompletionHandler
    Represents an interface that the client application needs to implement to receive the result of a requested agent operations. This handler may be implemented as an anonymous class to receive initial feedback about the outcome of a previously invoked operation by the client application.
    • Method Detail

      • onSuccess

        void onSuccess​(ButtonLampState lampState)
        Reports that the operation was successfully completed.
        Parameters:
        lampState - The lamp state of the agent feature LED upon completing processing of the operation.
      • onError

        void onError​(ButtonLampState lampState,
                     AgentException error)
        Reports that the operation has failed.
        Parameters:
        lampState - The lamp state of the agent feature LED upon completing processing of the operation.
        error - Information about failure details.