Skip to main content


Feature Introduction


The SDK will call this interface. On success, it will invoke the onSuccess method and return specific data. If it fails, it will call the onError method to return error information.

Function Prototype

public interface OnBase<T> {
* Failure
void onError(int code, String error);

* Success
void onSuccess(T data);

Return Results

onErrorError code and error message
onSuccessGeneric type (specified by the function call signature)