AgoraRtmLeaveChannelErrorCode Constants Reference

Declared in AgoraRtmKit.h

AgoraRtmLeaveChannelErrorCode

Error codes related to leaving a channel.

Definition

typedef NS_ENUM(NSInteger, AgoraRtmLeaveChannelErrorCode ) {
   AgoraRtmLeaveChannelErrorOk = 0,
   AgoraRtmLeaveChannelErrorFailure = 1,
   AgoraRtmLeaveChannelErrorRejected = 2,
   AgoraRtmLeaveChannelErrorNotInChannel = 3,
   AgoraRtmLeaveChannelErrorKicked = 4,
   AgoraRtmLeaveChannelErrorNotInitialized = 101,
   AgoraRtmLeaveChannelErrorNotLoggedIn = 102,
};

Constants

AgoraRtmLeaveChannelErrorOk

0: The user leaves the channel successfully.

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorFailure

1: The user fails to leave the channel.

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorRejected

2: RESERVED FOR FUTURE USE

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorNotInChannel

3: The user is not in the channel.

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorKicked

4: The user is banned to join the channel.

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorNotInitialized

101: The SDK is not initialized.

Declared In AgoraRtmKit.h.

AgoraRtmLeaveChannelErrorNotLoggedIn

102: The user does not call the loginByToken method, or the method call of loginByToken does not succeed before leaving the channel.

Declared In AgoraRtmKit.h.

Declared In

AgoraRtmKit.h