AgoraRtmQueryPeersOnlineErrorCode Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmQueryPeersOnlineErrorCode
查询在线状态相关错误码。
Definition
typedef NS_ENUM(NSInteger, AgoraRtmQueryPeersOnlineErrorCode ) {
AgoraRtmQueryPeersOnlineErrorOk = 0,
AgoraRtmQueryPeersOnlineErrorFailure = 1,
AgoraRtmQueryPeersOnlineErrorInvalidArgument = 2,
AgoraRtmQueryPeersOnlineErrorRejected = 3,
AgoraRtmQueryPeersOnlineErrorTimeout = 4,
AgoraRtmQueryPeersOnlineErrorTooOften = 5,
AgoraRtmQueryPeersOnlineErrorNotInitialized = 101,
AgoraRtmQueryPeersOnlineErrorNotLoggedIn = 102,
};
Constants
AgoraRtmQueryPeersOnlineErrorOk
-
0:查询用户状态成功。
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorFailure
-
1:查询用户状态失败。
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorInvalidArgument
-
2:查询参数无效。
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorRejected
-
3:预留错误码
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorTimeout
-
4:服务器响应超时。当前的超时设置为 10 秒。可能原因:用户正处于
AgoraRtmConnectionStateAborted
状态或AgoraRtmConnectionStateReconnecting
状态。Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorTooOften
-
5:方法调用过于频繁。超过 10 次每 5 秒的上限。
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorNotInitialized
-
101: SDK 未完成初始化。
Declared In
AgoraRtmKit.h
. AgoraRtmQueryPeersOnlineErrorNotLoggedIn
-
102: 查询指定用户在线状态前未调用 loginByToken 方法或者 loginByToken 方法调用未成功。
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h