NIMSDK-AOS
9.19.0
plugins
qchatmedia
src
main
java
com
netease
nimlib
sdk
qcmedia
QCMCallback2.java
浏览该文件的文档.
1
package
com.netease.nimlib.sdk.qcmedia;
2
3
import
com
.
netease
.
nimlib
.
sdk
.
ResponseCode
;
4
import
com
.
netease
.
nimlib
.
sdk
.
qcmedia
.
enums
.
QChatMediaErrorType
;
5
import
com
.
netease
.yunxin.kit.roomkit.api.NEErrorCode;
6
7
public
abstract
class
QCMCallback2
<T>
implements
QCMCallback
<T> {
8
9
@Override
10
public
void
onResult
(
QChatMediaErrorType
errorType,
int
code, @androidx.annotation.Nullable String message,
11
@androidx.annotation.Nullable T data) {
12
if
((errorType ==
QChatMediaErrorType
.
ERROR_RTC
&& code == NEErrorCode.SUCCESS) || (errorType ==
QChatMediaErrorType
.
ERROR_QCHAT
&& code ==
ResponseCode
.
RES_SUCCESS
)) {
13
onSuccess
(data);
14
}
else
{
15
onError
(errorType,code, message);
16
}
17
}
18
public
void
onSuccess
(T data) {}
19
20
public
void
onError
(
QChatMediaErrorType
errorType,
int
code, String message) {}
21
}
com.netease.nimlib.sdk.qcmedia
Definition:
QChatRTCChannelListener.java:1
com.netease.nimlib.sdk.qcmedia.enums
Definition:
QChatMediaAudioScenario.java:1
com.netease.nimlib.sdk
Definition:
RequestCallback.java:1
com.netease.nimlib.sdk.qcmedia.QCMCallback2.onError
void onError(QChatMediaErrorType errorType, int code, String message)
Definition:
QCMCallback2.java:20
com.netease.nimlib.sdk.qcmedia.QCMCallback
通用回调
Definition:
QCMCallback.java:9
com.netease.nimlib.sdk.qcmedia.enums.QChatMediaErrorType.ERROR_QCHAT
ERROR_QCHAT
Definition:
QChatMediaErrorType.java:7
com.netease
com
com.netease.nimlib.sdk.ResponseCode
云信服务器主要响应码定义
Definition:
ResponseCode.java:6
com.netease.nimlib.sdk.qcmedia.enums.QChatMediaErrorType
RTC登录状态枚举
Definition:
QChatMediaErrorType.java:6
com.netease.nimlib.sdk.qcmedia.QCMCallback2.onSuccess
void onSuccess(T data)
Definition:
QCMCallback2.java:18
com.netease.nimlib.sdk.qcmedia.QCMCallback2
Definition:
QCMCallback2.java:7
com.netease.nimlib.sdk.ResponseCode.RES_SUCCESS
static final short RES_SUCCESS
操作成功
Definition:
ResponseCode.java:11
com.netease.nimlib.sdk.qcmedia.QCMCallback2.onResult
void onResult(QChatMediaErrorType errorType, int code, @androidx.annotation.Nullable String message, @androidx.annotation.Nullable T data)
Definition:
QCMCallback2.java:10
com.netease.nimlib
com.netease.nimlib.sdk.qcmedia.enums.QChatMediaErrorType.ERROR_RTC
ERROR_RTC
Definition:
QChatMediaErrorType.java:8
生成于 2024年 十月 16日 星期三 10:25:06 , 为 NIMSDK-AOS使用
1.8.13