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.
-
-
Method Summary
Modifier and Type Method Description abstract voidonSuccess(@Nullable() T data)This method is invoked in the UI thread when the operation completes successfully. abstract voidonError(@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. -
-
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.
-
-
-
-