hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.EMCallBack Interface Reference

Inherited by com.hyphenate.chat.EMMessage.EMCallbackHolder.

Public Member Functions

void onSuccess ()
 
void onError (int code, String error)
 
default void onProgress (int progress, String status)
 

Detailed Description

The general callback interface.

For callbacks with a return value, see EMValueCallBack.

Member Function Documentation

◆ onError()

void com.hyphenate.EMCallBack.onError ( int  code,
String  error 
)

Occurs when an error occurs, see EMError.

Parameters
codeThe error code.
errorA description of the cause to the error.

◆ onProgress()

default void com.hyphenate.EMCallBack.onProgress ( int  progress,
String  status 
)

Occurs when the progress updates.

Parameters
progressThe progress information.
statusA description of the progress. Might be an empty string "" or null if the SDK does not return the information.

◆ onSuccess()

void com.hyphenate.EMCallBack.onSuccess ( )

Occurs when the method succeeds.


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