AgoraRtmConnectionChangeReason Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmConnectionChangeReason
连接状态改变原因。
Definition
typedef NS_ENUM(NSInteger, AgoraRtmConnectionChangeReason ) {
AgoraRtmConnectionChangeReasonLogin = 1,
AgoraRtmConnectionChangeReasonLoginSuccess = 2,
AgoraRtmConnectionChangeReasonLoginFailure = 3,
AgoraRtmConnectionChangeReasonLoginTimeout = 4,
AgoraRtmConnectionChangeReasonInterrupted = 5,
AgoraRtmConnectionChangeReasonLogout = 6,
AgoraRtmConnectionChangeReasonBannedByServer = 7,
AgoraRtmConnectionChangeReasonRemoteLogin = 8,
AgoraRtmConnectionChangeReasonTokenExpired = 9,
};
Constants
AgoraRtmConnectionChangeReasonLogin
-
1: SDK 正在登录 Agora RTM 系统。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonLoginSuccess
-
2: SDK 成功登录 Agora RTM 系统。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonLoginFailure
-
3: SDK 登录失败。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonLoginTimeout
-
4: SDK 未在 12 秒内登录 Agora RTM 系统,登录超时。可能原因:用户正处于
AgoraRtmConnectionStateAborted
状态或AgoraRtmConnectionStateReconnecting
状态。Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonInterrupted
-
5: SDK 和 Agora RTM 系统的连接由于网络问题而断开超过 4 秒。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonLogout
-
6: 用户已调用 logoutWithCompletion 方法登出 Agora RTM 系统。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonBannedByServer
-
7: 登录被 Agora RTM 服务器禁止。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonRemoteLogin
-
8: 本账号异地登陆,本地断开连接。
Declared In
AgoraRtmKit.h
. AgoraRtmConnectionChangeReasonTokenExpired
-
9: 用户当前使用的 Token 已过期。
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h