AgoraRtmJoinChannelErrorCode Constants Reference
Declared in | AgoraRtmKit.h |
---|
AgoraRtmJoinChannelErrorCode
Error codes related to joining a channel.
Definition
typedef NS_ENUM(NSInteger, AgoraRtmJoinChannelErrorCode ) {
AgoraRtmJoinChannelErrorOk = 0,
AgoraRtmJoinChannelErrorFailure = 1,
AgoraRtmJoinChannelErrorRejected = 2,
AgoraRtmJoinChannelErrorInvalidArgument = 3,
AgoraRtmJoinChannelErrorTimeout = 4,
AgoraRtmJoinChannelErrorExceedLimit = 5,
AgoraRtmJoinChannelErrorAlreadyJoined = 6,
AgoraRtmJoinChannelErrorTooOften = 7,
AgoraRtmJoinSameChannelErrorTooOften = 8,
AgoraRtmJoinChannelErrorNotInitialized = 101,
AgoraRtmJoinChannelErrorNotLoggedIn = 102,
};
Constants
AgoraRtmJoinChannelErrorOk
-
0: The user joins the channel successfully.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorFailure
-
1: The user fails to join the channel.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorRejected
-
2: RESERVED FOR FUTURE USE
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorInvalidArgument
-
3: The user fails to join the channel because the argument is invalid.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorTimeout
-
4: A timeout occurs when joining the channel. The current timeout is set as five seconds. Possible reasons: The user is in the
AgoraRtmConnectionStateAborted
orAgoraRtmConnectionStateReconnecting
state.Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorExceedLimit
-
5: The number of the RTM channels you are in exceeds the limit of 20.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorAlreadyJoined
-
6: The user is joining or has joined the channel.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorTooOften
-
7: The method call frequency exceeds the limit of 50 queries every three seconds.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinSameChannelErrorTooOften
-
8: The method call frequency exceeds the limit of 2 queries per 5 seconds for the same channel.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorNotInitialized
-
101: The SDK is not initialized.
Declared In
AgoraRtmKit.h
. AgoraRtmJoinChannelErrorNotLoggedIn
-
102: The user does not call the loginByToken method, or the method call of loginByToken does not succeed before joining the channel.
Declared In
AgoraRtmKit.h
.
Declared In
AgoraRtmKit.h