hyphenate_SDK4.0 4.6.0
hyphenate java IM SDK
Public 成员函数 | 所有成员列表
com.hyphenate.EMCallBack接口 参考

被 com.hyphenate.chat.EMMessage.EMCallbackHolder 继承.

Public 成员函数

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

详细描述

通用的回调函数接口。

如果想使用带参数返回值的回调函数,详见 EMValueCallBack

成员函数说明

◆ onError()

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

发生错误时调用的回调函数,详见 EMError

参数
code错误代码。
error包含文本类型的错误描述。

◆ onProgress()

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

刷新进度的回调函数。

参数
progress进度信息。
status包含文件描述的进度信息,如果 SDK 没有提供,结果可能是 "",或者 null。

◆ onSuccess()

void com.hyphenate.EMCallBack.onSuccess ( )

成功时执行回调函数。


该接口的文档由以下文件生成: