Public 成员函数 | |
| void | onSuccess (T value) |
| void | onError (final int error, final String errorMsg) |
| default void | onProgress (int progress, String status) |
带参数的回调函数。 不带参数的回调函数见 EMCallBack。
| <T> | 参数类型。 |
| void com.hyphenate.EMValueCallBack< T >.onError | ( | final int | error, |
| final String | errorMsg ) |
请求失败时的回调函数。
| error | 错误代码,详见 EMError。 |
| errorMsg | 错误信息。 |
| default void com.hyphenate.EMValueCallBack< T >.onProgress | ( | int | progress, |
| String | status ) |
刷新进度的回调函数。
| progress | 进度信息。 |
| status | 包含文件描述的进度信息,如果 SDK 没有提供,结果可能是 "",或者 null。 |
| void com.hyphenate.EMValueCallBack< T >.onSuccess | ( | T | value | ) |
回调函数成功执行,返回参数的值。
| value | value 的 class 类型是 T。 |