AgoraRtmPeerSubscriptionStatusErrorCode Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmPeerSubscriptionStatusErrorCode
订阅或退订指定用户状态相关错误码。
Definition
typedef NS_ENUM(NSInteger, AgoraRtmPeerSubscriptionStatusErrorCode ) {
AgoraRtmPeerSubscriptionStatusErrorOk = 0,
AgoraRtmPeerSubscriptionStatusErrorFailure = 1,
AgoraRtmPeerSubscriptionStatusErrorInvalidArgument = 2,
AgoraRtmPeerSubscriptionStatusErrorRejected = 3,
AgoraRtmPeerSubscriptionStatusErrorTimeout = 4,
AgoraRtmPeerSubscriptionStatusErrorTooOften = 5,
AgoraRtmPeerSubscriptionStatusErrorOverflow = 6,
AgoraRtmPeerSubscriptionStatusErrorNotInitialized = 101,
AgoraRtmPeerSubscriptionStatusErrorNotLoggedIn = 102,
};
Constants
AgoraRtmPeerSubscriptionStatusErrorOk
-
0: 方法调用成功,或订阅退订操作成功。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorFailure
-
1: 通用未知错误。订阅或退订操作失败。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorInvalidArgument
-
2: 无效的输入参数。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorRejected
-
3: 预留错误码
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorTimeout
-
4: 服务器响应超时。当前的超时设置为 10 秒。可能原因:用户正处于
AgoraRtmConnectionStateAborted
状态或AgoraRtmConnectionStateReconnecting
状态。Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorTooOften
-
5: 方法调用过于频繁。超过 10 次每 5 秒的限制。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorOverflow
-
6: 订阅人数超过 512 人的上限。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorNotInitialized
-
101: Agora RTM 服务未完成初始化。
Declared In
AgoraRtmKit.h
. AgoraRtmPeerSubscriptionStatusErrorNotLoggedIn
-
102: 本次操作前未调用 loginByToken 方法或者 loginByToken 方法调用未成功。
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h