Interface ClientResources.CallbackListener

  • All Implemented Interfaces:

    
    public interface ClientResources.CallbackListener<T>
    
                        

    Interface definition for callback handler for operation. Generic type T is the type of the data retrieved and provided as a parameter to the onSuccess method.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onSuccess(@Nullable() T data) This method is invoked in the UI thread when the operation completes successfully.
      abstract void onError(@NonNull() Throwable error) This method is invoked in the UI thread when the operation failed to complete successfully with one of the following errors: 1.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onSuccess

         abstract void onSuccess(@Nullable() T data)

        This method is invoked in the UI thread when the operation completes successfully.

      • onError

         abstract void onError(@NonNull() Throwable error)

        This method is invoked in the UI thread when the operation failed to complete successfully with one of the following errors:

        1. Exception-- error returned from CPMS server.

        2. IOException-- when operation is cancelled or encountered network occurred.

        Parameters:
        error - the error that occurred.