agora_chat_SDK 1.0.6
agora java chat SDK
Public Member Functions | List of all members
io.agora.ValueCallBack< T > Interface Template Reference

Public Member Functions

void onSuccess (T value)
 
void onError (final int error, final String errorMsg)
 

Detailed Description

The callback function with a parameter. For the callback function without a parameter, see CallBack.

Parameters
<T>value The parameter type.

Member Function Documentation

◆ onError()

void io.agora.ValueCallBack< T >.onError ( final int  error,
final String  errorMsg 
)

Occurs when the request fails.

Parameters
errorThe error code. See Error.
errorMsgA description of the issue that caused this call to fail.

◆ onSuccess()

void io.agora.ValueCallBack< T >.onSuccess ( value)

Occurs when the callback function executes successfully with a value returned.

Parameters
valueThe class type of value is T.

The documentation for this interface was generated from the following file: