io.agora.rtm.ResultCallback Maven / Gradle / Ivy
package io.agora.rtm;
/**
* The ResultCallback interface contains callbacks indicating the results of a
* method call:
*/
public interface ResultCallback {
/**
* Occurs when a method call succeeds.
*
* @param responseInfo The response information. Can be set as void.
*/
void onSuccess(T responseInfo);
/**
* Occurs when a method call fails.
*
* @param errorInfo The error code. See {@link ErrorInfo}.
*/
void onFailure(ErrorInfo errorInfo);
}