AgoraRtmConnectionChangeReason Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmConnectionChangeReason
Reasons for a connection state change.
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: The SDK is logging in the Agora RTM system.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonLoginSuccess
-
2: The SDK has logged in the Agora RTM system.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonLoginFailure
-
3: The SDK fails to log in the Agora RTM system.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonLoginTimeout
-
4: The login has timed out for 12 seconds, and the SDK stops logging in.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonInterrupted
-
5: The connection between the SDK and the Agora RTM system is interrupted for more than four seconds.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonLogout
-
6: The user has called the logoutWithCompletion method to log out of the Agora RTM system.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonBannedByServer
-
7: Login is banned by the Agora RTM server.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonRemoteLogin
-
8: Another instance has logged in the Agora RTM system with the same user ID.
Declared In
AgoraRtmKit.h
. -
AgoraRtmConnectionChangeReasonTokenExpired
-
9: The token has expired.
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h