hyphenate_SDK3.0  3.8.5
hyphenatejavaIMSDK
Public 成员函数 | 所有成员列表
com.hyphenate.EMCallBack接口 参考

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

Public 成员函数

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

详细描述

通用的回调函数接口 带参数返回值的回调函数见EMValueCallBack

成员函数说明

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

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

参数
code错误代码
error包含文本类型的错误描述
void com.hyphenate.EMCallBack.onProgress ( int  progress,
String  status 
)

刷新进度的回调函数

参数
progress进度信息
status包含文件描述的进度信息, 如果SDK没有提供,结果可能是"", 或者null
void com.hyphenate.EMCallBack.onSuccess ( )

成功时执行回调函数


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