Public Member Functions

void onSuccess (T responseInfo)
 
void onFailure (ErrorInfo errorInfo)
 

Detailed Description

The ResultCallback interface contains callbacks indicating the results of a general method call:

Note: The T parameter is a generic type. If T is set as void, the onSuccess callback carries a null object.

Member Function Documentation

◆ onSuccess()

void io.agora.rtm.ResultCallback< T >.onSuccess ( responseInfo)

Occurs when a method call succeeds.

Parameters
responseInfoThe response information. Can be set as void.

◆ onFailure()

void io.agora.rtm.ResultCallback< T >.onFailure ( ErrorInfo  errorInfo)

Occurs when a method call fails.

Parameters
errorInfoThe error code. See ErrorInfo.