Skip to main content

Listener Enums

NameDescriptionVersion
Event.STATE_CHANGEDConnection state listener. Used when configuring a connection listener.1.0.0
Event.MESSAGE_RECEIVEDMessage receive listener. Used when configuring a message listener.1.0.0
Event.CONVERSATION_CHANGEDConversation change listener. Used when configuring a conversation listener.1.0.0

Connection Enums

NameDescriptionVersion
ConnectionState.CONNECTEDConnected successfully1.0.0
ConnectionState.CONNECTINGConnecting1.0.0
ConnectionState.DISCONNECTEDDisconnected. Once this state is reported, the connection is fully closed and the SDK will no longer retry. The application can notify the user that the connection is disconnected.1.0.0
ConnectionState.DB_OPENEDLocal database opened. Applies only to Electron.1.7.0
ConnectionState.DB_CLOSEDLocal database closed. Applies only to Electron.1.7.0
ConnectionState.RECONNECTINGThe SDK is reconnecting internally. By default, it sends a heartbeat every 30s; it reconnects after three consecutive heartbeats receive no server response. It also attempts reconnection when a request, such as sending a message, has no response after 10s. By default, up to 100 retries are made at intervals of 1s, 2s, 4s, 8s, 16s, and so on.1.7.0

Conversation Enums

NameDescriptionVersion
ConversationType.PRIVATEOne-to-one conversation between two users1.0.0
ConversationType.GROUPGroup conversation used for group communication1.0.0
ConversationType.CHATROOMChatroom conversation, used for room-based communication scenarios such as live streams1.0.0
ConversationOrder.FORWARDConversation retrieval direction. Conversation lists are sorted by time in descending order; retrieves older conversations.1.0.0
ConversationOrder.BACKWARDConversation retrieval direction. Conversation lists are sorted by time in descending order; retrieves newer conversations.1.0.0

Message Enums

NameDescriptionVersion
MessageType.TEXTText message1.0.0
MessageType.IMAGEImage message1.0.0
MessageType.VOICEVoice message1.0.0
MessageType.VIDEOShort video message1.0.0
MessageType.FILEFile message1.0.0
MessageType.RECALLRecalled message1.0.0
MessageType.READ_MSGMessage recall notification1.0.0
MessageType.UPDATE_MSGMessage update notification1.0.0
MessageOrder.FORWARDRetrieves newer messages. Use when scrolling the message view toward the input box.1.0.0
MessageOrder.BACKWARDRetrieves older messages. Use when scrolling the message view toward the top.1.0.0

Status Code Enums

NameDescriptionVersion
ErrorTypeStatus code enum. See status codes for details.1.0.0

Mention Message Enums

NameDescriptionVersion
MentionType.ALLmembers1.0.0
MentionType.SOMEONEmembers1.0.0
MentionType.ALL_SOMEONE@all members + @specified members1.0.0

Conversation Mute Notifications

NameDescriptionVersion
UndisturbType.DISTURBMute Notifications1.0.0
UndisturbType.UNDISTURBDisable Mute Notifications1.0.0

Conversation Marker State

NameDescriptionVersion
UnreadTag.UNREADMark conversation as unread1.0.0

Message Send State

NameDescriptionVersion
MESSAGE_SENT_STATE.NONEInitial state1.0.0
MESSAGE_SENT_STATE.SENDINGMessage is being sent1.0.0
MESSAGE_SENT_STATE.SUCCESSMessage sent successfully1.0.0
MESSAGE_SENT_STATE.FAILEDMessage failed to send1.0.0
MESSAGE_SENT_STATE.UPLOADINGUploading file, image, or other message content1.0.0

Mention Message Retrieval Direction

NameDescriptionVersion
MENTION_ORDER.BACKWARDRetrieves older messages. Use when scrolling the message view toward the top.1.0.0
MENTION_ORDER.FORWARDRetrieves newer messages. Use when scrolling the message view toward the input box.1.0.0

Moments Retrieval Direction

NameDescriptionVersion
MOMENT_ORDER.ASCRetrieve older Moments1.9.6
MOMENT_ORDER.DESCRetrieve newer Moments1.9.6

Moments Type Enums

NameDescriptionVersion
MOMENT_TYPE.IMAGEImage type1.9.6
MOMENT_TYPE.VIDEOVideo type1.9.6

Comment Retrieval Direction

NameDescriptionVersion
COMMENT_ORDER.ASCRetrieve older comments1.9.6
COMMENT_ORDER.DESCRetrieve newer comments1.9.6