logo
In-app Chat
On this page

Interface

2026-01-23
ZIMAllRoomLeftResultZIMAppConfig
ZIMAudioANSParamZIMAudioError
ZIMAudioFrameParamZIMAudioMessage
ZIMAudioMessageLiteInfoZIMAudioPlayConfig
ZIMAudioRecordConfigZIMBarrageMessage
ZIMBlacklistCheckedResultZIMBlacklistQueriedResult
ZIMBlacklistQueryConfigZIMBlacklistUsersAddedResult
ZIMBlacklistUsersRemovedResultZIMCacheConfig
ZIMCallAcceptanceSentResultZIMCallAcceptConfig
ZIMCallCancelConfigZIMCallCancelSentResult
ZIMCallEndConfigZIMCallEndSentResult
ZIMCallInfoZIMCallingInvitationSentResult
ZIMCallingInviteConfigZIMCallInvitationListQueriedResult
ZIMCallInvitationQueryConfigZIMCallInvitationSentResult
ZIMCallInviteConfigZIMCallJoinConfig
ZIMCallJoinSentResultZIMCallQuitConfig
ZIMCallQuitSentResultZIMCallRejectConfig
ZIMCallRejectionSentResultZIMCallUserInfo
ZIMCombineMessageZIMCombineMessageDetailQueriedResult
ZIMCombineMessageLiteInfoZIMCommandMessage
ZIMConversationZIMConversationBaseInfo
ZIMConversationChangeInfoZIMConversationDeleteConfig
ZIMConversationDeletedResultZIMConversationDraftSetResult
ZIMConversationFilterOptionZIMConversationListQueriedResult
ZIMConversationMessageReceiptReadSentResultZIMConversationNotificationStatusSetResult
ZIMConversationPinnedListQueriedResultZIMConversationPinnedStateUpdatedResult
ZIMConversationQueriedResultZIMConversationQueryConfig
ZIMConversationSearchConfigZIMConversationSearchInfo
ZIMConversationsSearchedResultZIMConversationTotalUnreadMessageCountQueryConfig
ZIMConversationUnreadMessageCountClearedResultZIMCustomMessage
ZIMCustomMessageLiteInfoZIMError
ZIMErrorUserInfoZIMEventHandler
ZIMEventOfBlacklistChangedResultZIMEventOfBroadcastMessageReceivedResult
ZIMEventOfCallInvitationAcceptedResultZIMEventOfCallInvitationCancelledResult
ZIMEventOfCallInvitationCreatedResultZIMEventOfCallInvitationEndedResult
ZIMEventOfCallInvitationReceivedResultZIMEventOfCallInvitationRejectedResult
ZIMEventOfCallInvitationTimeoutResultZIMEventOfCallInviteesAnsweredTimeoutResult
ZIMEventOfCallUserStateChangedResultZIMEventOfConnectionStateChangedResult
ZIMEventOfConversationChangedResultZIMEventOfConversationsAllDeletedResult
ZIMEventOfConversationTotalUnreadMessageCountUpdatedResultZIMEventOfFriendApplicationListChangedResult
ZIMEventOfFriendApplicationUpdatedResultZIMEventOfFriendInfoUpdatedResult
ZIMEventOfFriendListChangedResultZIMEventOfGroupAliasUpdatedResult
ZIMEventOfGroupApplicationListChangedResultZIMEventOfGroupApplicationUpdatedResult
ZIMEventOfGroupAttributesUpdatedResultZIMEventOfGroupAvatarUrlUpdatedResult
ZIMEventOfGroupMemberInfoUpdatedResultZIMEventOfGroupMemberStateChangedResult
ZIMEventOfGroupMutedInfoUpdatedResultZIMEventOfGroupNameUpdatedResult
ZIMEventOfGroupNoticeUpdatedResultZIMEventOfGroupStateChangedResult
ZIMEventOfGroupVerifyInfoUpdatedResultZIMEventOfMessageDeletedResult
ZIMEventOfMessageEditedResultZIMEventOfMessageReactionsChangedResult
ZIMEventOfMessageReceiptChangedResultZIMEventOfMessageRepliedCountChangedResult
ZIMEventOfMessageRepliedInfoChangedResultZIMEventOfMessageRevokeReceivedResult
ZIMEventOfMessageSentStatusChangedResultZIMEventOfReceiveConversationMessageResult
ZIMEventOfRoomAttributesUpdatedResultZIMEventOfRoomMemberChangedResult
ZIMEventOfRoomMembersAttributesUpdatedResultZIMEventOfRoomStateChangedResult
ZIMEventOfTokenWillExpireResultZIMEventOfUserInfoUpdatedResult
ZIMEventOfUserRuleUpdatedResultZIMFileCacheClearConfig
ZIMFileCacheQueriedResultZIMFileCacheQueryConfig
ZIMFileMessageZIMFileMessageLiteInfo
ZIMFriendAddConfigZIMFriendAddedResult
ZIMFriendAliasUpdatedResultZIMFriendApplicationAcceptConfig
ZIMFriendApplicationAcceptedResultZIMFriendApplicationInfo
ZIMFriendApplicationListQueriedResultZIMFriendApplicationListQueryConfig
ZIMFriendApplicationRejectConfigZIMFriendApplicationRejectedResult
ZIMFriendApplicationSendConfigZIMFriendApplicationSentResult
ZIMFriendAttributesUpdatedResultZIMFriendDeleteConfig
ZIMFriendInfoZIMFriendListQueriedResult
ZIMFriendListQueryConfigZIMFriendRelationCheckConfig
ZIMFriendRelationInfoZIMFriendsDeletedResult
ZIMFriendsInfoQueriedResultZIMFriendsRelationCheckedResult
ZIMFriendsSearchConfigZIMFriendsSearchedResult
ZIMGroupZIMGroupAdvancedConfig
ZIMGroupAliasUpdatedResultZIMGroupApplicationInfo
ZIMGroupApplicationListQueriedResultZIMGroupApplicationListQueryConfig
ZIMGroupAttributesOperatedResultZIMGroupAttributesQueriedResult
ZIMGroupAttributesUpdateInfoZIMGroupAvatarUrlUpdatedResult
ZIMGroupBeInviteModeUpdatedResultZIMGroupConversation
ZIMGroupCreatedResultZIMGroupDismissedResult
ZIMGroupEnterInfoZIMGroupFullInfo
ZIMGroupInfoZIMGroupInfoQueriedResult
ZIMGroupInviteApplicationAcceptConfigZIMGroupInviteApplicationAcceptedResult
ZIMGroupInviteApplicationRejectConfigZIMGroupInviteApplicationRejectedResult
ZIMGroupInviteApplicationSendConfigZIMGroupInviteApplicationsSentResult
ZIMGroupInviteModeUpdatedResultZIMGroupJoinApplicationAcceptConfig
ZIMGroupJoinApplicationAcceptedResultZIMGroupJoinApplicationRejectConfig
ZIMGroupJoinApplicationRejectedResultZIMGroupJoinApplicationSendConfig
ZIMGroupJoinApplicationSentResultZIMGroupJoinedResult
ZIMGroupJoinModeUpdatedResultZIMGroupLeftResult
ZIMGroupListQueriedResultZIMGroupMemberCountQueriedResult
ZIMGroupMemberInfoZIMGroupMemberInfoQueriedResult
ZIMGroupMemberKickedResultZIMGroupMemberListQueriedResult
ZIMGroupMemberMuteConfigZIMGroupMemberMutedListQueriedResult
ZIMGroupMemberMutedListQueryConfigZIMGroupMemberNicknameUpdatedResult
ZIMGroupMemberQueryConfigZIMGroupMemberRoleUpdatedResult
ZIMGroupMemberSearchConfigZIMGroupMemberSimpleInfo
ZIMGroupMembersMutedResultZIMGroupMembersSearchedResult
ZIMGroupMessageReceiptMemberListQueriedResultZIMGroupMessageReceiptMemberQueryConfig
ZIMGroupMuteConfigZIMGroupMutedResult
ZIMGroupMuteInfoZIMGroupNameUpdatedResult
ZIMGroupNoticeUpdatedResultZIMGroupOperatedInfo
ZIMGroupOwnerTransferredResultZIMGroupSearchConfig
ZIMGroupSearchInfoZIMGroupsSearchedResult
ZIMGroupUsersInvitedResultZIMGroupVerifyInfo
ZIMImageMessageZIMImageMessageLiteInfo
ZIMLogConfigZIMLoginConfig
ZIMMediaDownloadConfigZIMMediaDownloadedResult
ZIMMediaMessageZIMMediaMessageLiteInfo
ZIMMediaMessageSendNotificationZIMMediaMessageSentResult
ZIMMessageZIMMessageDeleteConfig
ZIMMessageDeletedResultZIMMessageEditConfig
ZIMMessageEditedResultZIMMessageExportConfig
ZIMMessageImportConfigZIMMessageInsertedResult
ZIMMessageLiteInfoZIMMessageLocalExtendedDataUpdatedResult
ZIMMessageMentionedInfoZIMMessagePinnedResult
ZIMMessagePinStatusChangeInfoZIMMessageQueriedResult
ZIMMessageQueryConfigZIMMessageReaction
ZIMMessageReactionAddedResultZIMMessageReactionDeletedResult
ZIMMessageReactionUserInfoZIMMessageReactionUserListQueriedResult
ZIMMessageReactionUserQueryConfigZIMMessageReceiptInfo
ZIMMessageReceiptsInfoQueriedResultZIMMessageReceiptsReadSentResult
ZIMMessageRepliedInfoZIMMessageRepliedListQueriedResult
ZIMMessageRepliedListQueryConfigZIMMessageRevokeConfig
ZIMMessageRevokedResultZIMMessageRootRepliedCountInfo
ZIMMessageRootRepliedInfoZIMMessageSearchConfig
ZIMMessageSendConfigZIMMessageSendNotification
ZIMMessageSentResultZIMMessageSentStatusChangeInfo
ZIMMessagesGlobalSearchedResultZIMMessagesSearchedResult
ZIMMultipleMessageZIMMultipleMessageLiteInfo
ZIMOfflinePushPrivateMessageTemplateZIMPinnedMessageListQueriedResult
ZIMPushConfigZIMRevokeMessage
ZIMRevokeMessageLiteInfoZIMRoomAdvancedConfig
ZIMRoomAttributesBatchOperatedResultZIMRoomAttributesBatchOperationConfig
ZIMRoomAttributesDeleteConfigZIMRoomAttributesOperatedResult
ZIMRoomAttributesQueriedResultZIMRoomAttributesSetConfig
ZIMRoomAttributesUpdateInfoZIMRoomCreatedResult
ZIMRoomEnteredResultZIMRoomFullInfo
ZIMRoomInfoZIMRoomJoinedResult
ZIMRoomLeftResultZIMRoomMemberAttributesInfo
ZIMRoomMemberAttributesListQueriedResultZIMRoomMemberAttributesOperatedInfo
ZIMRoomMemberAttributesQueryConfigZIMRoomMemberAttributesSetConfig
ZIMRoomMemberAttributesUpdateInfoZIMRoomMemberInfo
ZIMRoomMemberQueriedResultZIMRoomMemberQueryConfig
ZIMRoomMembersAttributesOperatedResultZIMRoomMembersAttributesQueriedResult
ZIMRoomMembersQueriedResultZIMRoomOnlineMemberCountQueriedResult
ZIMRoomOperatedInfoZIMRoomSwitchedResult
ZIMSelfUserInfoZIMSelfUserInfoQueriedResult
ZIMSelfUserRuleZIMSendingMessageCancelConfig
ZIMSubscribedUserStatusListQueriedResultZIMSubscribedUserStatusQueryConfig
ZIMTextMessageZIMTextMessageLiteInfo
ZIMTipsMessageZIMTipsMessageChangeInfo
ZIMTipsMessageGroupChangeInfoZIMTipsMessageGroupMemberChangeInfo
ZIMTipsMessagePinStatusChangeInfoZIMTokenRenewedResult
ZIMUserAvatarUrlUpdatedResultZIMUserCustomStatusUpdatedResult
ZIMUserExtendedDataUpdatedResultZIMUserFullInfo
ZIMUserInfoZIMUserNameUpdatedResult
ZIMUserOfflinePushRuleZIMUserOfflinePushRuleUpdatedResult
ZIMUsersInfoQueriedResultZIMUsersInfoQueryConfig
ZIMUsersStatusQueriedResultZIMUsersStatusSubscribedResult
ZIMUsersStatusUnsubscribedResultZIMUserStatus
ZIMUserStatusSubscribeConfigZIMUserStatusSubscription
ZIMVideoMessageZIMVideoMessageLiteInfo
ZIMVoIPConfigZPNsConfig
ZPNsIOSNotificationArrivedConfigZPNsLocalMessage
ZPNsMessageZPNsNotificationChannel
ZPNsRegisterConfigZPNsRegisterMessage

ZIMAllRoomLeftResult

Callback for the results of leaving all rooms.

Properties

roomIDs

roomIDs
roomIDs: string[]

Room IDs.

ZIMAppConfig

ZIM application configuration, including AppID and AppSign.

Properties

appID

appID
appID: number
  • Required: Required.

appSign

appSign
appSign: string
  • Required: Required.

ZIMAudioANSParam

ANS Parameter

Details

Includes noise suppression mode.

Properties

mode

mode

Noise Suppression Mode (ANS).

ZIMAudioError

Details

It can be used to record the error type and error information generated by the SDK, check the error code table on the ZEGO official website, and seek assistance from ZEGO technical support.

Properties

code

code
code: ZIMAudioErrorCode

Error code.

message

message
message: string

It can be used to record the error type and error information generated by the SDK, check the error code table on the ZEGO official website, and seek assistance from ZEGO technical support.

ZIMAudioFrameParam

Details

Audio frame attribute parameters.

Properties

sampleRate

sampleRate
sampleRate: Number

The audio sample rate.

channels

channels
channels: Number

The number of audio channels.

ZIMAudioMessage

Audio message object.

Details

Identifies the basic parameters of a message.

  • Caution: If the Type parameter of the base class is Audio during callback, you can force the base class message object to be of this type.

Properties

audioDuration

audioDuration
audioDuration: number
  • Required: Required by the sender, if not filled, the audio message will fail to be sent When sending local audio messages.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMAudioMessageLiteInfo

Audio message lite info object.

Details

Identifies the basic parameters of a audio message.

Properties

audioDuration

audioDuration
audioDuration: number
  • Required: Required by the sender, if not filled, the audio message will fail to be sent When sending local audio messages.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

ZIMAudioPlayConfig

Audio Playback Configuration

Details

Playing configuration. Configuration specifies the audio file path and routing type that currently need to be played.

Properties

filePath

filePath
filePath: string

The absolute path of the file needs to be played. Currently, only full absolute paths with the suffix .mp3 or .m4a are supported. When passing in file paths in other formats, the SDK will throw an illegal file path error.

routeType

routeType
routeType: ZIMAudioRouteType

Starting audio routing type when playing.

ZIMAudioRecordConfig

Audio Recording Configuration

Details

Configure the recording file output path and maximum recording time during recording.

Properties

filePath

filePath
filePath: string

The output path of the recording file. Currently, only full absolute paths with the suffix .mp3 or .m4a are supported. When passing in file paths in other formats, the SDK will throw an illegal file path error.

maxDuration

maxDuration
maxDuration: number

The maximum recording time, the default is 60000 ms, which is 60s. The unit of this parameter is milliseconds, and the maximum value does not exceed 300000.

ZIMBarrageMessage

Barrage message class.

Details

The barrage message class does not appear in the session and does not store historical messages.

Properties

message

message
message: string

The content of barrage message.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMBlacklistCheckedResult

Return of results confirming whether the user has been blacklisted.

Details

Return of results confirming whether the user has been blacklisted.

  • Use cases: After confirming whether the user has been blocked, the success or failure can be known through this callback.

Related API: [checkUserIsInBlacklist],Check if the user has been blacklisted.

Properties

isUserInBlacklist

isUserInBlacklist
isUserInBlacklist: boolean

Whether the user has been blacklisted.

ZIMBlacklistQueriedResult

Return of blacklist query results.

Details

Return of results for querying blacklist.

  • Use cases: After querying the blacklist, the success or failure can be known through this callback.

Related API: [queryBlacklist],querying the blacklist.

Properties

blacklist

blacklist
blacklist: ZIMUserInfo[]

Blacklist user information list.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMBlacklistQueryConfig

Query the blacklist configuration.

Details

Through this configuration, you can set the total number of queries and the pagination query.

Properties

count

count
count: number

count.

  • Required: Required.

nextFlag

nextFlag
nextFlag: number

nextFlag.

  • Required: Not required, it is 0 by default for the first time, which means to start the query from the beginning.

ZIMBlacklistUsersAddedResult

Return of results for adding user to blacklist.

Details

Return of results for adding user to blacklist.

  • Use cases: After adding a user to the blacklist, the success or failure can be known through this callback.

Related API: [addUsersToBlacklist], adding user to blacklist.

Properties

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of failed messages for adding users to the blacklist.

ZIMBlacklistUsersRemovedResult

Return of results for removing users from blacklist.

Details

Return of results for removing users from blacklist.

  • Use cases: After removing users from the blacklist, the success or failure can be known through this callback.

Related API: [removeUsersFromBlacklist], adding user to blacklist.

Properties

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of failed messages for removing users from the blacklist.

ZIMCacheConfig

Cache configuration

Details

Configure the storage path of cache files (such as chat records).

Properties

cachePath

cachePath
cachePath: string

The storage path of the cache files. Refer to the official website document for the default path.

ZIMCallAcceptConfig

Behavior property set by accepting a call invitation.

Details

Behavior property set by accepting a call invitation.

Properties

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

  • Required: Required.

ZIMCallAcceptanceSentResult

Call acceptance sent message.

Properties

callID

callID
callID: string

call ID.

ZIMCallCancelConfig

Behavior property that cancels the call invitation setting.

Details

Behavior property that cancels the call invitation setting.

Properties

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

  • Required: not required.
  • Default value: "".

pushConfig

pushConfig
pushConfig: ZIMPushConfig

详情描述: 离线推送配置。 是否必填:非必填。

ZIMCallCancelSentResult

Call cancel sent message.

Details

Call cancel sent message.

Properties

errorInvitees

errorInvitees
errorInvitees: string[]

The user ID who failed to cancel the call invitation.

callID

callID
callID: string

call ID.

ZIMCallEndConfig

End the behavior attribute of the call invitation setting.

Details

End the behavior attribute of the call invitation setting.

Properties

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

  • Required: not required.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

  • Required: not required.

ZIMCallEndSentResult

End the return result of the current call.

Properties

callID

callID
callID: string

call ID.

createTime

createTime
createTime: number

Time stamp of creating the call invitation.

acceptTime

acceptTime
acceptTime: number

The current user accepts the time stamp of the call invitation.

endTime

endTime
endTime: number

End the current call invitation time stamp.

ZIMCallInfo

Call invitation information.

Details

Call invitation information.

Properties

callID

callID
callID: string

Call invite ID.

caller

caller
caller: string

Call invitation initiator ID.

mode

mode

Call invitation mode.

state

state
state: ZIMCallState

Call invitation status.

extendedData

extendedData
extendedData: string

Create a call invitation additional information.

createTime

createTime
createTime: number

Call invites to create a timestamp.

endTime

endTime
endTime: number

Call invitation end time.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

The list of call member.

ZIMCallInvitationListQueriedResult

Query the return result of the call invitation list.

Properties

callList

callList
callList: ZIMCallInfo[]

Call invitation list.

nextFlag

nextFlag
nextFlag: number

The flag of the paging query. For the first query, set this field to an empty string. If the "nextFlag" field of the callback is not an empty string, it needs to be set here to continue the query on the next page.

ZIMCallInvitationQueryConfig

Inquiry the setting attribute of the call invitation list

Details

Inquiry the setting attribute of the call invitation list

Properties

count

count
count: number

The query number is limited to up to 100.

  • Required: required.

nextFlag

nextFlag
nextFlag: number

The flag of the query list.No padding is required for the first query. After the query, callback will return a nextFlag, which can be filled in the next query to continue the query based on the last query.

  • Required: not required.

ZIMCallInvitationSentResult

Call invitation sent message.

Details

Call invitation sent message.

Properties

timeout

timeout
timeout: number

The timeout setting of the call invitation, the unit is seconds.

errorInvitees

errorInvitees
errorInvitees: ZIMCallUserInfo[]

User id that has not received a call invitation.

callID

callID
callID: string

call ID.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

User id that has not received a call invitation and the reason.

ZIMCallInviteConfig

The behavior property of the Send Call Invitation setting.

Details

The behavior property of the Send Call Invitation setting.

Properties

timeout

timeout
timeout: number

The timeout setting of the call invitation, the unit is seconds. The range is [1, 600].

  • Required: not required.

Default: 90.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

  • Required: not required.

mode

mode

Call invitation mode configuration. Supported Version: 2.9.0 or later.

  • Required: required. default:GENERAL

enableNotReceivedCheck

enableNotReceivedCheck
enableNotReceivedCheck: boolean

If the pass value is true, the system checks whether the call invitation is delivered in this call and subsequent calls.

  • Use cases: After the calling party sends a call invitation, if the called party does not receive the invitation within 5 seconds (3 or 4 seconds can be configured for technical support) because the user is disconnected or not online, the user status changes to notYetReceived. You can use this state flow to indicate to the user that the user may not be online. If the called party goes online before the call times out, the status changes to received received.
  • Required: This is not required.
  • Default value: false
  • Recommended value: This property takes effect in version 2.15.0 and later, when the new version sends an invitation to a call with delivery detection turned on to the old version, which will continue to display the inviting status instead of notYetReceived.

ZIMCallJoinConfig

Add the behavior attribute of the call invitation setting.

Details

Add the behavior attribute of the call invitation setting.

Properties

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

ZIMCallJoinSentResult

Result callback of joining the call invitation.

Properties

callID

callID
callID: string

call ID.

createTime

createTime
createTime: number

Timestamp of the time when the call invitation was created.

joinTime

joinTime
joinTime: number

Time stamp of the person join the call invitation.

extendedData

extendedData
extendedData: string

The pass-through field that comes with invoking the end of the call.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

List of user information in the current call invitation.

ZIMCallQuitConfig

Behavior property set by quit a call invitation.

Details

Behavior property set by quit a call invitation.

Properties

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

  • Required: Required.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

  • Required: not required.

ZIMCallQuitSentResult

Exit the return result of the current call.

Properties

callID

callID
callID: string

call ID.

createTime

createTime
createTime: number

Time stamp of creating the call invitation.

acceptTime

acceptTime
acceptTime: number

The current user accepts the time stamp of the call invitation.

quitTime

quitTime
quitTime: number

The current user withdraws from the time stamp of the call invitation.

ZIMCallRejectConfig

This parameter is used to set the configuration item of call invitation rejection.

Details

This command is used to customize the call invitation when sending invitation rejection.

  • Use cases: You need to pass the configuration item to the interface when invoking the call rejection invitation.

Properties

extendedData

extendedData
extendedData: string

Additional fields for attaching custom content when sending a reject invitation.

  • Use cases: When the user needs to refuse to send some custom content to the inviter.
  • Required: Required.
  • Default value: "".

ZIMCallRejectionSentResult

Call rejection sent message.

Properties

callID

callID
callID: string

call ID.

ZIMCallUserInfo

Call invitation user information.

Details

Call invitation user information.

Properties

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

state

state

user status.

extendedData

extendedData
extendedData: string

Call the additional information in user information.

ZIMCallingInvitationSentResult

Invite others to enter the call back result information.

Properties

callID

callID
callID: string

call ID.

errorInvitees

errorInvitees
errorInvitees: ZIMErrorUserInfo[]

User id that has not received a call invitation and the reason.

ZIMCallingInviteConfig

Behavior property set by quit a call invitation.

Details

Behavior property set by quit a call invitation.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

  • Required: not required.

ZIMCombineMessage

Base class for combine message objects.

  • Available since: 2.14.0 and above.

Properties

title

title
title: string

The title of combine message

summary

summary
summary: string

The summary of combine message

combineID

combineID
combineID: string

Combine ID, internal user

messageList

messageList
messageList: ZIMMessage[]

List of child messages

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMCombineMessageDetailQueriedResult

Callback of the result of querying combine message.

Details

A callback that executes the result after the developer pulls the details of the combine message.

  • When to call: This callback is triggered when a developer invokes the [queryCombineMessageDetail] interface.
  • Caution: Use [queryCombineMessageDetail] to pull the details of the combine message, and the success of the pull will be notified through this callback.
  • Available since: 2.5.0 or above.

Properties

message

message

The combine message with detail.

ZIMCombineMessageLiteInfo

Base class for combine message lite info objects.

Details

Detail description: Identifies a combine message.

Properties

title

title
title: string

The title of combine message

summary

summary
summary: string

The summary of combine message

type

type

Identifies the type of this message.

ZIMCommandMessage

Custom binary message object.

Details

Identifies a binary message.

  • Caution: If the Type parameter of the base class is Custom during callback, you can force the base class message object to be of this type.

Properties

message

message
message: Uint8Array

The content of the custom message.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMConversation

Session specific content.

Details

The specific content of the session.

Properties

conversationID

conversationID
conversationID: string

conversationID.

conversationName

conversationName
conversationName: string

conversationName is the same as the groupName/userName value corresponding to the session.

type

type

conversation type.

unreadMessageCount

unreadMessageCount
unreadMessageCount: number

Session unread.

lastMessage

lastMessage
lastMessage: ZIMMessage

last message.

orderKey

orderKey
orderKey: number

OrderKey is used to describe the order of messages in the session. The larger orderKey is, the newer it is.

notificationStatus

notificationStatus

session notification status.

conversationAvatarUrl

conversationAvatarUrl
conversationAvatarUrl: string

Detail description: Conversation avatar URL. The peer to peer chat conversation avatar URL is the same as the user avatar URL, and the group chat conversation avatar URL is the same as the group avatar URL.

Use Limit: the maximum number of characters is 500 bytes. There is no limit on special characters.

isPinned

isPinned
isPinned: boolean

Whether the conversation is pinned.

mentionedInfoList

mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]

When reminded in a message or reminded to everyone in a conversation, this array will record the reminders.

  • Use cases: For example, you can display the number of reminders in the conversation list based on this array, and also display which user's reminder it is.

conversationAlias

conversationAlias
conversationAlias: string

After the friend remarks are set through [updateFriendAlias], this parameter is changed for each chat conversation. After setting a group alias by [updateGroupAlias], the corresponding group chat conversation's parameter will be modified synchronously.

  • Use cases: After update alias for friends or groups, the corresponding conversation chooses to display the alias over the conversation name when rendering the conversation page.

marks

marks
marks: std::vector\<int>

Describes all the existing marks for the conversation.

  • Use cases: The business layer can group logic, etc., according to different conversations with different marks.

draft

draft
draft: string

Conversation draft, when draft set conversation will carry this parameter.

ZIMConversationBaseInfo

Conversation base content.

Details

The base content of the session.

Properties

conversationID

conversationID
conversationID: string

conversationID.

conversationType

conversationType
conversationType: ZIMConversationType

conversation type.

ZIMConversationChangeInfo

Session change information.

Details

Contains information after session changes.

Properties

event

event

session events.

conversation

conversation
conversation: ZIMConversation

Session specific information.

ZIMConversationDeleteConfig

Delete session configuration.

Details

Delete the related configuration of the session.

Properties

isAlsoDeleteServerConversation

isAlsoDeleteServerConversation
isAlsoDeleteServerConversation: boolean

Whether to delete the conversation on the server

  • Required: not required.
  • Default value: true.

ZIMConversationDeletedResult

Callback for conversation deletion.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationDraftSetResult

Result for setting conversation draft

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationFilterOption

Search filters related to the conversation.

Details

Configurable filter options when querying conversation list.

Properties

marks

marks
marks: std::vector\<int>

Conversation marks. Only integers in the range [1, 20] are supported. If the list contains -1, the query result will be all marked conversation; if the list contains 0, the query result will be all unmarked conversations; if multiple markers are passed, the query result will be the union of all passed markers; if the list is empty, the query result will be all conversations.

  • Use cases: This filter can be used when needing to search for conversations that include specified conversation marks.

conversationTypes

conversationTypes
conversationTypes: std::vector<ZIMConversationType>

Conversation types. Only support one-on-one and group conversations.

  • Use cases: When you need to search by conversation type, you can use this filter.

isOnlyUnreadConversation

isOnlyUnreadConversation
isOnlyUnreadConversation: boolean

Whether to only query conversations with unread counts. Pass true to only query conversations with unread counts. Pass false to query without considering whether conversations have unread counts.

  • Use cases: It is necessary to query conversations that have a message unread count.

ZIMConversationListQueriedResult

Conversation list query callback.

Properties

conversationList

conversationList
conversationList: ZIMConversation[]

Conversation list.

ZIMConversationMessageReceiptReadSentResult

Callback interface for setting the read receipt conversation.

Details

Supported version: 2.5.0 and above.

Detailed description: Set the callback interface for the read receipt conversation.

Business scenario: Developers can judge whether the sending is successful through [errorCode] in the callback.

Notification timing: When the developer calls the [sendConversationMessageReceiptRead] interface, this callback will be triggered.

Relevant interface: The success or failure of the conversation read result set by [sendConversationMessageReceiptRead] will be notified through this callback.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationNotificationStatusSetResult

Callback for conversation notification state settings.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationPinnedListQueriedResult

Callback for querying the pinned conversation list.

Details

After the conversation pinned list is queried, the callback is used to return the query result.

  • Use cases: The logic after the pinned conversation list query can be done in this callback.
  • When to call /Trigger: Triggered when the conversation pinned list is queried.
  • Available since: 2.8.0 and above.

Properties

conversationList

conversationList
conversationList: ZIMConversation[]

Conversation list.

ZIMConversationPinnedStateUpdatedResult

Callback for conversation pinned state updated.

Details

After updating the pinned status of the conversation, the query result is returned through this callback.

  • Use cases: The logic after updating the pinned status of the conversation can be done in this callback.
  • When to call /Trigger: Triggered after updating the pinned status of the conversation.
  • Available since: 2.8.0 and above.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationQueriedResult

Conversation query callback.

Details

After the conversation is queried, the callback is used to return the query result.

  • Use cases: The logic after the conversation query can be done in this callback.
  • When to call /Trigger: Triggered when the conversation is queried.
  • Available since: 2.8.0 and above.

Properties

conversation

conversation
conversation: ZIMConversation

Conversation object.

ZIMConversationQueryConfig

Query the relevant configuration of the session.

Details

Configurable information when querying a session.

Properties

nextConversation

nextConversation
nextConversation: ZIMConversation

Session that needs to be queried.

  • Required: Not required.

count

count
count: number

The number of sessions to query.

  • Required: Required.

ZIMConversationSearchConfig

Conversation search configuration.

Details

Conversation search configuration.

Properties

nextFlag

nextFlag
nextFlag: number

Pagination token, fill in 0 initially, and then fill in the nextFlag returned from the callback to retrieve data for the next page.

totalConversationCount

totalConversationCount
totalConversationCount: number

The number of messages that can be retrieved in one search. It is recommended to be less than 20 to reduce performance overhead.

  • Required: Required.

conversationMessageCount

conversationMessageCount
conversationMessageCount: number

The number of local messages that can be retrieved for a single conversation in one search. It is recommended to be less than 10 to reduce performance overhead.

keywords

keywords
keywords: string[]

Search keywords, supports up to 5. Otherwise, an error will occur. For example, if you pass in "1" and "2", the search results will only display conversations that contain both "1" and "2" keywords in the messages.

messageTypes

messageTypes
messageTypes: ZIMMessageType[]

Message types, can be used to specify message types. Support passing in multiple types.

subMessageTypes

subMessageTypes
subMessageTypes: number[]

The subtypes of custom messages have a value range of [0,200]. Developers can use this range to search for specific custom types.

senderUserIDs

senderUserIDs
senderUserIDs: string[]

Send user ID, supports up to 5. For example, if you pass in "zego2023", the search results will only display conversations where messages have been sent by the user "zego2023".

startTime

startTime
startTime: number

The starting point of the search, in milliseconds, with a default value of 0. The format is UTC timestamp.

endTime

endTime
endTime: number

The ending point of the search, which must be greater than the startTime, in milliseconds. The default value is 0 and the format is UTC timestamp.

ZIMConversationSearchInfo

Conversations search info.

Properties

conversationID

conversationID
conversationID: string

The conversation ID of the local message to be search.

conversationType

conversationType
conversationType: ZIMConversationType

conversation type.

totalMessageCount

totalMessageCount
totalMessageCount: number

Total message count

messageList

messageList
messageList: ZIMMessage[]

Search results of messages.

ZIMConversationTotalUnreadMessageCountQueryConfig

Search filters related to the conversation total unread message count.

Details

Configurable filter options when querying conversation total unread message count.

Properties

marks

marks
marks: std::vector\<int>

Conversation marks. Only integers in the range [1, 20] are supported. If the list contains -1, the query result will be all marked conversation; if the list contains 0, the query result will be all unmarked conversations; if multiple markers are passed, the query result will be the union of all passed markers; if the list is empty, the query result will be all conversations.

  • Use cases: This filter can be used when needing to search for conversations that include specified conversation marks.

conversationTypes

conversationTypes
conversationTypes: std::vector<ZIMConversationType>

Conversation types. Only support one-on-one and group conversations.

  • Use cases: When you need to search by conversation type, you can use this filter.

ZIMConversationUnreadMessageCountClearedResult

Callback for conversation unread clearing.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

ZIMConversationsSearchedResult

Search for the return of local conversations results based on local messages.

Details

Search the results of local conversations based on local messages.

  • Use cases: After performing a local session message search operation, the success or failure can be known through this callback.

Related API: [searchLocalConversations], search for local conversations based on local messages.

Properties

conversationSearchInfoList

conversationSearchInfoList
conversationSearchInfoList: ZIMConversationSearchInfo[]

List of searched conversation messages.

nextFlag

nextFlag
nextFlag: number

The next flag.

ZIMCustomMessage

Custom message object.

Details

Identifies a custom message.

  • Caution: When calling back, if the Type parameter of the base class is Custom, the base class message object can be forcibly converted to this class.
  • Available since: 2.8.0 and above.

Properties

message

message
message: string

The text content of the message.

subType

subType
subType: number

The subtype of the message, which is used by customers to customize the usage of different custom messages.

  • Required: The sender is required, otherwise the message will fail to be sent.

searchedContent

searchedContent
searchedContent: string

Search fields for custom messages. Since you cannot search for a custom message by directly searching the message field, you can concatenate the content you want to be searched in the custom message (such as the title of the poll, etc.) and put it in this parameter (the length is 64 bytes by default), so that follow-up search.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMCustomMessageLiteInfo

Custom message lite info object.

Details

Identifies a custom message.

Properties

message

message
message: string

The text content of the message.

subType

subType
subType: number

The subtype of the message, which is used by customers to customize the usage of different custom messages.

  • Required: The sender is required, otherwise the message will fail to be sent.

searchedContent

searchedContent
searchedContent: string

Search fields for custom messages. Since you cannot search for a custom message by directly searching the message field, you can concatenate the content you want to be searched in the custom message (such as the title of the poll, etc.) and put it in this parameter (the length is 64 bytes by default), so that follow-up search.

type

type

Identifies the type of this message.

ZIMError

Error infomation

Details

Error infomation.

Properties

code

code

The storage path of the log files. Refer to the official website document for the default path.

message

message
message: string

Error infomation description.

ZIMErrorUserInfo

Error user information class.

Details

Used to show the failed user and the reason for the failure.

Properties

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

reason

reason
reason: number

Description Reason for the query failure.

ZIMEventHandler

Details

Callback.

Methods

blacklistChanged

blacklistChanged
blacklistChanged(zim: ZIM, data: ZIMEventOfBlacklistChangedResult): void
This method will be called back when the blacklist is updated or changes occur.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfBlacklistChangedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [addUsersToBlacklist].

friendListChanged

friendListChanged
friendListChanged(zim: ZIM, data: ZIMEventOfFriendListChangedResult): void
This method will be called back when the friend list is updated or changes occur.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfFriendListChangedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [addFriend].

friendApplicationListChanged

friendApplicationListChanged
friendApplicationListChanged(zim: ZIM, data: ZIMEventOfFriendApplicationListChangedResult): void
This method will be called back when the friend application list changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfFriendApplicationListChangedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [sendFriendApplication].

friendApplicationUpdated

friendApplicationUpdated
friendApplicationUpdated(zim: ZIM, data: ZIMEventOfFriendApplicationUpdatedResult): void
The current method will be called when there is an update in the friend request list.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfFriendApplicationUpdatedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [acceptFriendApplication] [rejectFriendApplication]。

friendInfoUpdated

friendInfoUpdated
friendInfoUpdated(zim: ZIM, data: ZIMEventOfFriendInfoUpdatedResult): void
This callback will be triggered when there is an update in the friend information.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfFriendInfoUpdatedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [updateFriendAlias] [updateFriendAttributes]。

userStatusUpdated

userStatusUpdated
userStatusUpdated(zim: ZIM, userStatusList: List<ZIMUserStatus>): void
User status change notification.

Parameters

NameTypeDescription
zimZIMzim instance.
userStatusListList<ZIMUserStatus>A list with data about the user's online status.

Details

User online status change notification.

  • Use cases: This callback can be used when you needs to pay attention to the online status of certain users, for example, the online group members need to be displayed. After subscribing to users through the subscribeUsersStatus method, the online status of the targeted users and the changes of their online status during the validity period of the subscription will be notified to you through this callback.
  • When to call /Trigger: After the current user subscribes to the target user for the first time, the event will be triggered if the target user is added to the subscription list for the first time, or the subscribed user's online status or online platform list. In addition, the callback will also be triggered if the current user has opened a multi-terminal login and the online platform has changed.
  • Available since: 2.18.0
  • Restrictions: When the userStatusUpdated callback returns the userStatus information of the current user, the onlineStatus will be unknown and the lastUpdateTime will be 0, which cannot truly present the online status. Map the online status of the current user according to connectionStateChanged.

error

error
error(zim: ZIM, errorInfo: ZIMError): void
The callback for error information.

Parameters

NameTypeDescription
zimZIMZIM instance.
errorInfoZIMErrorError information, please refer to the error codes document.

Details

When an EXCEPTION occurs in the SDK, the callback prompts detailed exception information.

  • Use cases: It is recommended that developers listen for this callback notification and print the error information to the console during debugging after accessing the SDK, so that they can learn about the errors occurred during development and modify them in time.
  • When to call: When an error occurs within the SDK, the SDK notifies the developer through this function callback.
  • Available since: 1.1.0 or above.

connectionStateChanged

connectionStateChanged
connectionStateChanged(zim: ZIM, data: ZIMEventOfConnectionStateChangedResult): void
The event callback when the connection state changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfConnectionStateChangedResultThe result of the event callback.

Details

When the connection status changes, the user will be notified of the current status and events through this callback.

  • Use cases: The [ZIMConnectionState] and [ZIMConnectionEvent] in this callback can be used to accomplish different business logic when you need to monitor the connection state and the events that cause the connection state to change.
  • When to call: This function is called back when connection state changes.
  • Available since: 1.1.0 or above.

tokenWillExpire

tokenWillExpire
tokenWillExpire(zim: ZIM, data: ZIMEventOfTokenWillExpireResult): void
A reminder callback that the token is about to expire.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfTokenWillExpireResultThe result of the event callback.

Details

When receiving this callback, the developer should call the [renewToken] function to update the Token in time.

  • Use cases: When the authentication Token has only 30 seconds left, the SDK calls back this function to notify the developer to update the authentication Token. If the validity period of the authentication Token passed by the developer when [login] is less than 30 seconds, the authentication Token will be recalled after [login] is successful.
  • When to call: For details, see authentication Token Generation https://doc-zh.zego.im/article/11617.
  • Available since: 1.1.0 or above.

userInfoUpdated

userInfoUpdated
userInfoUpdated(zim: ZIM, data: ZIMEventOfUserInfoUpdatedResult): void
Callback for user information update.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfUserInfoUpdatedResultThe result of the event callback.

Details

In the multi-terminal login scenario, after the user modifies their information on device A, other online multi-terminal devices will receive this callback. For offline devices, after the user goes online, they need to call the [queryUsersInfo] interface to actively query user information.

  • Available since: 2.11.0 or above.

userRuleUpdated

userRuleUpdated
userRuleUpdated(zim: ZIM, data: ZIMEventOfUserRuleUpdatedResult): void
Callback of user rule changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfUserRuleUpdatedResultThe result of the event callback.

Details

Callback of user rule changes.

When to

  • Trigger: When the user rule of the current user is changed, all users are notified by the callback.
  • Available since: 2.15.0 and later versions.

callInvitationReceived

callInvitationReceived
callInvitationReceived(zim: ZIM, data: ZIMEventOfCallInvitationReceivedResult): void
The notification callback for the call invitation received by the invitee.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationReceivedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].

If the user is not in the invitation list or not online, this callback will not be called.

  • Related APIs: [callInvite].

callInvitationCreated

callInvitationCreated
callInvitationCreated(zim: ZIM, data: ZIMEventOfCallInvitationCreatedResult): void
The notification callback for the call invitation created by the caller.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationCreatedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [callInvite].

callInvitationCancelled

callInvitationCancelled
callInvitationCancelled(zim: ZIM, data: ZIMEventOfCallInvitationCancelledResult): void
The notification callback received by the invitee to cancel the invitation.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationCancelledResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].

If the user is not in the cancel invitation list or is offline, this callback will not be called.

  • Related APIs: [callCancel].

callInvitationTimeout

callInvitationTimeout
callInvitationTimeout(zim: ZIM, data: ZIMEventOfCallInvitationTimeoutResult): void
Callback for notification of called call invitation timeout.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationTimeoutResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].

If the user is not on the invitation list or is not online, the callback will not be received.

  • Related APIs: [callInvite], [callAccept], [callReject].

callInvitationAccepted

callInvitationAccepted
deprecated
callInvitationAccepted(zim: ZIM, data: ZIMEventOfCallInvitationAcceptedResult): void
The notification callback received by the inviter that invitee has accepted the invitation.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationAcceptedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].

This callback will not be called if the user is not online.

  • Related APIs: [callAccept].
Deprecated
This interface has been abandoned in ZIM 2.9.0. Please use [callUserStateChanged] instead.

callInvitationRejected

callInvitationRejected
deprecated
callInvitationRejected(zim: ZIM, data: ZIMEventOfCallInvitationRejectedResult): void
The inviter receives the notification callback that the invitee reject the invitation.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationRejectedResultThe result of the event callback.

Details

This callback will be received when the inviter is online after the inviter rejects the call invitation.

  • Use cases: The inviter will receive this callback after the inviter declines the call invitation.
  • Default value: After creating a ZIM instance through [create] and logging in.
  • When to call /Trigger: After creating a ZIM instance through [create] and logging in.
  • Related APIs: [callReject].
  • Available since: 2.0.0 and above.
  • Restrictions: If the user is not the inviter of the call invitation or is not online, the callback will not be received.
Deprecated
This interface has been abandoned in ZIM 2.9.0. Please use [callUserStateChanged] instead.

callInviteesAnsweredTimeout

callInviteesAnsweredTimeout
deprecated
callInviteesAnsweredTimeout(zim: ZIM, data: ZIMEventOfCallInviteesAnsweredTimeoutResult): void
Callback for notification of caller call invitation timeout.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInviteesAnsweredTimeoutResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].

If the user is not the inviter who initiated this call invitation or is not online, the callback will not be received.

  • Related APIs: [callInvite], [callAccept], [callReject].
Deprecated
This interface has been abandoned in ZIM 2.9.0. Please use [callUserStateChanged] instead.

callInvitationEnded

callInvitationEnded
callInvitationEnded(zim: ZIM, data: ZIMEventOfCallInvitationEndedResult): void
Callback for notification of caller call invitation ended.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallInvitationEndedResultThe result of the event callback.
  • Related APIs: [callEnd]

callUserStateChanged

callUserStateChanged
callUserStateChanged(zim: ZIM, data: ZIMEventOfCallUserStateChangedResult): void
Call the notification of the user status in the invitation invitation.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfCallUserStateChangedResultThe result of the event callback.
  • When to call: When a new member is invited to a call, or a member accepts, rejects, exits, or a member response times out, all users on the current call invitation whose status is "Inviting," "Accepted," and "Received" receive the callback here. If the member is not online at the time of notification, the call is still ongoing when the login succeeds. The status changes of all members during the offline period will be sent to the user at one time.

If the user is not the inviter who initiated this call invitation or is not online, the callback will not be received.

  • Related APIs: [callInvite], [callingInvite], [callAccept], [callReject],[callQuit].

groupStateChanged

groupStateChanged
groupStateChanged(zim: ZIM, data: ZIMEventOfGroupStateChangedResult): void
Group state change notification callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupStateChangedResultThe result of the event callback.

Details

allback notification of group status change.

  • Use cases: Scenarios that require interaction based on the group status.
  • When to call /Trigger: A notification is triggered when a group is created, joined, left, or dismissed.
  • Related APIs: [createGroup] : creates a group. [joinGroup] : joins a group. [leaveGroup], leave the group. [dismissGroup]; dismiss the group.

groupAliasUpdated

groupAliasUpdated
groupAliasUpdated(zim: ZIM, data: ZIMEventOfGroupAliasUpdatedResult): void
Group alias update notification callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupAliasUpdatedResultThe result of the event callback.

Details

Group alias change notification callback.

  • Use cases: When the group alias is changed, this notification synchronizes the latest group alias to all devices of the user who made the modification.

When to

  • Trigger: The group alias is changed.
  • Related APIs: [updateGroupAlias].

groupNameUpdated

groupNameUpdated
groupNameUpdated(zim: ZIM, data: ZIMEventOfGroupNameUpdatedResult): void
Group name update notification callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupNameUpdatedResultThe result of the event callback.

Details

Group name change notification callback.

  • Use cases: If the group name is changed, you need to synchronize the latest group name.
  • When to call /Trigger: The group name is changed. Procedure
  • Related APIs: [updateGroupName] : updates the group name.

groupAvatarUrlUpdated

groupAvatarUrlUpdated
groupAvatarUrlUpdated(zim: ZIM, data: ZIMEventOfGroupAvatarUrlUpdatedResult): void
Group avatar URL update notification callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupAvatarUrlUpdatedResultThe result of the event callback.
  • Related APIs: [updateGroupAvatarUrl], update group avatar URL.

groupNoticeUpdated

groupNoticeUpdated
groupNoticeUpdated(zim: ZIM, data: ZIMEventOfGroupNoticeUpdatedResult): void
Notification callback for group announcement updates.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupNoticeUpdatedResultThe result of the event callback.

Details

Group bulletin Change notification callback.

  • Use cases: If a group bulletin changes, you need to synchronize the latest bulletin content.
  • When to call /Trigger: The group bulletin is changed. Procedure
  • Related APIs: [updateGroupNotice], which updates the group notice.

groupMutedInfoUpdated

groupMutedInfoUpdated
groupMutedInfoUpdated(zim: ZIM, data: ZIMEventOfGroupMutedInfoUpdatedResult): void
Notification callback for group mute info updates.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupMutedInfoUpdatedResultThe result of the event callback.

Details

Callback notification for changes in group mute information.

  • Use cases: To know the details of changes when group mute information changes.

When to trigger: When group mute information changes.

  • Related APIs: [muteGroup], Group Mute.

groupVerifyInfoUpdated

groupVerifyInfoUpdated
groupVerifyInfoUpdated(zim: ZIM, data: ZIMEventOfGroupVerifyInfoUpdatedResult): void
Notification callback for group verification mode update.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupVerifyInfoUpdatedResultThe result of the event callback.

Details

Callback notification for changes in group verification mode.

When to trigger: When group verification mode changes.

  • Related APIs: [updateGroupJoinMode, updateGroupInviteMode, updateGroupBeInviteMode], Update the group verification mode.

groupAttributesUpdated

groupAttributesUpdated
groupAttributesUpdated(zim: ZIM, data: ZIMEventOfGroupAttributesUpdatedResult): void
Group property update attributes callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupAttributesUpdatedResultThe result of the event callback.

Details

Group attribute change notification callback.

  • Use cases: When group attributes are changed, you need to synchronize the latest group attributes.
  • When to call /Trigger: Triggered when group properties are set, updated, or deleted.
  • Related APIs: [setGroupAttributes] updates group attributes. [deleteGroupAttributes], delete the group attribute.

groupMemberStateChanged

groupMemberStateChanged
groupMemberStateChanged(zim: ZIM, data: ZIMEventOfGroupMemberStateChangedResult): void
Group member state change notification callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupMemberStateChangedResultThe result of the event callback.

Details

Group member status change notification callback.

  • Use cases: Scenarios that require interaction based on group member states.
  • When to call /Trigger: Notification is triggered when a group is created, joined, left, or dismissed, or a user is invited to join or kicked out of the group.
  • Related APIs: [createGroup], creates a group. [joinGroup], joins a group. [leaveGroup], leave the group. [dismissGroup], dismiss the group. [intiveUsersIntoGroup], which invites users to join the group. [kickGroupMembers], kicks the user out of the group.

groupMemberInfoUpdated

groupMemberInfoUpdated
groupMemberInfoUpdated(zim: ZIM, data: ZIMEventOfGroupMemberInfoUpdatedResult): void
Group member basic information change notification.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupMemberInfoUpdatedResultThe result of the event callback.

Details

Return the operation result of changing group member information.

  • Use cases: After the basic information of group members is changed, you need to display or interact with group members on the page.
  • When to call /Trigger: The result is displayed after the group member information is changed.
  • Related APIs: [setGroupMemberNickname], updates the nickname of a group member. [setGroupMemberRole], updates the group member role. [transferGroupOwner], group master transfer.

groupApplicationListChanged

groupApplicationListChanged
groupApplicationListChanged(zim: ZIM, data: ZIMEventOfGroupApplicationListChangedResult): void
This method will be called back when the group application list changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupApplicationListChangedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [sendGroupJoinApplication], [sendGroupInviteApplications].

groupApplicationUpdated

groupApplicationUpdated
groupApplicationUpdated(zim: ZIM, data: ZIMEventOfGroupApplicationUpdatedResult): void
This method will be called back when the group application list changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfGroupApplicationUpdatedResultThe result of the event callback.
  • When to call: After creating a ZIM instance through [create].
  • Related APIs: [acceptGroupJoinApplication], [rejectGroupJoinApplication], [acceptGroupInviteApplication], [rejectGroupInviteApplication].

conversationChanged

conversationChanged
conversationChanged(zim: ZIM, data: ZIMEventOfConversationChangedResult): void
Received notification callback for session update.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfConversationChangedResultThe result of the event callback.

Details

Trigger this callback to return notification of session updates when a session is added, deleted, modified, pinned or unpinned.

  • When to call /Trigger: Notifications are triggered when a new message is updated in the session, or when the session itself is added, deleted, or modified.
  • Caution: ConversationID is the same as single chat toUserID and group chat GroupID.
  • Related APIs: Triggered by [sendPeerMessage], [sendGroupMessage], [sendRoomMessage], [deleteConversation], [deleteMessage], [deleteMessageByConversationID], [updateConversationPinnedState].
  • Available since: 2.0.0 and above.

conversationMessageReceiptChanged

conversationMessageReceiptChanged
conversationMessageReceiptChanged(zim: ZIM, data: ZIMEventOfMessageReceiptChangedResult): void
Callback for notifications of read updates for sessions that receive receipts.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageReceiptChangedResultThe result of the event callback.

Details

When the message receiver has read the session, the message sender knows through this callback.

  • Trigger: Trigger a notification when the message receiver has read the session.
  • Related APIs: triggered when the peer calls via [sendConversationMessageReceiptRead].
  • Available since: 2.5.0 and above.

conversationSyncStateChanged

conversationSyncStateChanged
conversationSyncStateChanged(zim: ZIM, state: ZIMConversationSyncState): void
Received notification callback for synchronizing conv list from server.

Parameters

NameTypeDescription
zimZIMZIM instance.
stateZIMConversationSyncStateThe synchronizing conversation list state from server.

Details

This callback is triggered to notify of conversation updates when the SDK initiates the process of synchronizing conversations from the server after initial login, and when the process completes or fails.

When to

  • Trigger: The notification is triggered when the SDK confirms the need to pull list data from the server.
  • Caution: ConversationID is the same as single chat toUserID and group chat GroupID.
  • Available since: 2.21.0 and above.

conversationsAllDeleted

conversationsAllDeleted
conversationsAllDeleted(zim: ZIM, data: ZIMEventOfConversationsAllDeletedResult): void
The callback of all conversation deletion was received.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfConversationsAllDeletedResultThe result of the event callback.

Details

When multiple login ends delete all conversations, the local end triggers the callback to notify the local end that all conversations are deleted.

  • When to call /Trigger: When another end clears all unread conversations, the local end triggers a notification.
  • Related APIs: Triggered by [deleteAllConversations] .
  • Available since: 2.12.0 and above.

messageReceiptChanged

messageReceiptChanged
messageReceiptChanged(zim: ZIM, data: ZIMEventOfMessageReceiptChangedResult): void
The notification callback for the read update of the message that received the receipt.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageReceiptChangedResultThe result of the event callback.

Details

When the message receiver confirms that the message has been read, the message sender knows through this callback.

  • Trigger: Trigger a notification when the message receiver has read the message.
  • Related APIs: triggered when the peer calls via [sendMessageReceiptsRead].
  • Available since: 2.5.0 and above.

conversationTotalUnreadMessageCountUpdated

conversationTotalUnreadMessageCountUpdated
conversationTotalUnreadMessageCountUpdated(zim: ZIM, data: ZIMEventOfConversationTotalUnreadMessageCountUpdatedResult): void
Notification callback for session total unread updates.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfConversationTotalUnreadMessageCountUpdatedResultThe result of the event callback.

Details

This callback is used to return the total unread of the session.

  • When to call /Trigger: Log in, call [deleteConversation], [deleteMessage], [deleteAllMessageByConversationID], [clearConversationUnreadMessageCount], [clearConversationTotalUnreadMessageCount] Causes the message reading to change to trigger the callback.
  • Related APIs: [deleteConversation]、[deleteMessage]、[deleteMessageByConversationID]、[clearConversationUnreadMessageCount]、[clearConversationTotalUnreadMessageCount]
  • Available since: 2.0.0 and above.

groupMessageReceived

groupMessageReceived
groupMessageReceived(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving group message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

When the user is online, they can receive online group messages through this callback. Also, when the user logs back into the ZIM SDK, they can receive all the group chat messages received during the offline period (up to 7 days) through this callback.

Call timing: This callback occurs when a ZIM instance is created with [create] and a group member sends a message.

  • Related callbacks: You can send messages to other group members via [sendGroupMessage].
  • Available since: 2.18.0 or above

peerMessageReceived

peerMessageReceived
peerMessageReceived(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving peer-to-peer message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

When the user is online, they can receive one-on-one chat messages through this callback. Also, when the user logs back into the ZIM SDK, they can receive all the one-on-one chat messages received during the offline period (up to 7 days) through this callback.

Call timing: This callback occurs when a ZIM instance is created with [create] and the other user sends you a message.

  • Related callbacks: You can send messages to other members via [sendPeerMessage].
  • Available since: 2.18.0 or above

roomMessageReceived

roomMessageReceived
roomMessageReceived(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving room message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

When the user is online, they can receive online room messages through this callback. Also, when the user transitions back to online status from being offline, if they are still in the room, they can receive all the room messages received during the offline period through this callback.

Call timing: This callback occurs when a ZIM instance is created with [create] and a group member sends a message.

  • Related callbacks: You can send messages to other group members via [sendRoomMessage].
  • Available since: 2.18.0 or above

messageEdited

messageEdited
messageEdited(zim: ZIM, data: ZIMEventOfMessageEditedResult): void
The callback for receiving edited message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageEditedResultThe result of the event callback.

Details

This callback is received when some one edited a message.

Call timing: This callback occurs when a ZIM instance is created with [create] and the other user edited a message.

  • Related callbacks: You can edit the message sent successfully by yourself through [editMessage].
  • Available since: 2.20.0 or above.

messagePinStatusChanged

messagePinStatusChanged
messagePinStatusChanged(zim: ZIM, data: ZIMEventOfMessagePinnedStatusResult): void
The notification for receiving message pinned status changed.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessagePinnedStatusResultThe result of the event callback.

Details

This notification is received when a message successfully is pinned or unpinned.

Call timing: This callback occurs after a ZIM instance is created with [create] and another user successfully pins or unpins a message.

  • Related APIs: You can pin or unpin a message you successfully sent yourself through [pinMessage].

messageRevokeReceived

messageRevokeReceived
messageRevokeReceived(zim: ZIM, data: ZIMEventOfMessageRevokeReceivedResult): void
The callback for receiving revoke message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageRevokeReceivedResultThe result of the event callback.

Details

This callback is received when some one else sends a message and then revoke.

Call timing: This callback occurs when a ZIM instance is created with [create] and the other user revoke a message.

  • Related callbacks: You can revoke message to other members via [revokeMessage].
  • Available since: 2.5.0 or above.

messageSentStatusChanged

messageSentStatusChanged
messageSentStatusChanged(zim: ZIM, data: ZIMEventOfMessageSentStatusChangedResult): void
The callback for received message send status change.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageSentStatusChangedResultThe result of the event callback.

Details

This callback is received when messages status changed.

Call timing: This callback occurs when messages status changed.

  • Related callbacks: You can send message to other members via [sendMessage].
  • Available since: 2.6.0 or above.

broadcastMessageReceived

broadcastMessageReceived
broadcastMessageReceived(zim: ZIM, data: ZIMEventOfBroadcastMessageReceivedResult): void
The callback of the broadcast message received by all employees.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfBroadcastMessageReceivedResultThe result of the event callback.

Details

The callback is received when the server interface [SendMessageToAllUsers] sends a message.

Call time: This callback is received after logging in to the ZIM service and the server call the [SendMessageToAllUsers] interface to send a message.

messageReactionsChanged

messageReactionsChanged
messageReactionsChanged(zim: ZIM, data: ZIMEventOfMessageReactionsChangedResult): void
The callback of the reactions change.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageReactionsChangedResultThe result of the reaction change.

Details

The callback is received when reactions change

When to Call: This callback can be registered after the ZIM instance is created by [create] and before login.

When to

  • Trigger: After other users add or delete reactions to messages in private or group chats.
  • Related APIs: [addMessageReaction]、[deleteMessageReaction]

messageDeleted

messageDeleted
messageDeleted(zim: ZIM, data: ZIMEventOfMessageDeletedResult): void
Callback when the message is deleted.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageDeletedResultThe result of the event callback.

Details

In the multi-terminal login scenario, after the user deletes the server level message on device A, other online multi-terminal devices will receive this callback..

receivePeerMessage

receivePeerMessage
deprecated
receivePeerMessage(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving peer-to-peer message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

This callback is received when you receive a point-to-point message from someone else.

Call timing: This callback occurs when a ZIM instance is created with [create] and the other user sends you a message.

  • Related callbacks: You can send messages to other members via [sendPeerMessage].
  • Available since: 2.0.0 or above
Deprecated
This method is deprecated in version 2.18.0, please use [peerMessageReceived] instead.

receiveRoomMessage

receiveRoomMessage
deprecated
receiveRoomMessage(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving room message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

This callback is received when an in-room message is received.

Call timing: This callback occurs when a ZIM instance is created with [create] and a group member sends a message.

  • Related callbacks: You can send messages to other group members via [sendRoomMessage].
  • Available since: 2.0.0 or above
Deprecated
This method is deprecated in version 2.18.0, please use [roomMessageReceived] instead.

messageRepliedCountChanged

messageRepliedCountChanged
messageRepliedCountChanged(zim: ZIM, data: ZIMEventOfMessageRepliedCountChangedResult): void
Reply to the event that the number of message trees has changed.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageRepliedCountChangedResultThe result of the event callback.

Details

When there is a new reply message, the number of replies to the corresponding root message is notified through this event.

  • Available since: 2.17.0 or above

messageRepliedInfoChanged

messageRepliedInfoChanged
messageRepliedInfoChanged(zim: ZIM, data: ZIMEventOfMessageRepliedInfoChangedResult): void
The reply information of a reply message is changed.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfMessageRepliedInfoChangedResultThe result of the event callback.

Details

Change event for a reply message received after the source message referenced by the reply message is deleted and withdrawn.

  • Available since: 2.17.0 or above

receiveGroupMessage

receiveGroupMessage
deprecated
receiveGroupMessage(zim: ZIM, data: ZIMEventOfReceiveConversationMessageResult): void
The callback for receiving group message.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfReceiveConversationMessageResultThe result of the event callback.

Details

This callback is received when a group message is received.

Call timing: This callback occurs when a ZIM instance is created with [create] and a group member sends a message.

  • Related callbacks: You can send messages to other group members via [sendGroupMessage].
  • Available since: 2.0.0 or above
Deprecated
This method is deprecated in version 2.18.0, please use [groupMessageReceived] instead.

roomStateChanged

roomStateChanged
roomStateChanged(zim: ZIM, data: ZIMEventOfRoomStateChangedResult): void
event callback when the room connection status changes.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfRoomStateChangedResultThe result of the event callback.

Details

event callback when the room connection status changes.

  • When to call:
    creating a ZIM instance through [create], you can call this interface.
  • Related APIs: through [onTokenWillExpire], the callback will be received when the token is about to expire.
  • Available since: 1.1.0 or above.

roomMemberJoined

roomMemberJoined
roomMemberJoined(zim: ZIM, data: ZIMEventOfRoomMemberChangedResult): void
Callback when other members join the room.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfRoomMemberChangedResultThe result of the event callback.

Details

After joining a room, when other members also join this room, they will receive this callback.

  • Use cases: When other members in the room join, this callback will be called.
  • When to call: After creating a ZIM instance through [create], and the user is in a room joined by other members, you can call this interface.
  • Caution: If the user is not currently in this room, this callback will not be called.
  • Related APIs: You can use [onRoomMemberLeft] to receive this callback when other room members leave.
  • Available since: 1.1.0 or above.

roomMemberLeft

roomMemberLeft
roomMemberLeft(zim: ZIM, data: ZIMEventOfRoomMemberChangedResult): void
Callback when other members leave the room.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfRoomMemberChangedResultThe result of the event callback.

Details

After joining a room, when other members leave the room, they will receive this callback.

  • Use cases: When other members in the room leave the room, this callback will be called.
  • When to call: After creating a ZIM instance through [create], and the user is in the same room of other members, you can call this interface.
  • Caution: If the user is not currently in this room, this callback will not be called.
  • Related APIs: You can receive this callback when other room members join through [onRoomMemberJoined].
  • Available since: 1.1.0 or above.

roomAttributesUpdated

roomAttributesUpdated
roomAttributesUpdated(zim: ZIM, data: ZIMEventOfRoomAttributesUpdatedResult): void
Notification of room property changes.

Parameters

NameTypeDescription
zimZIM
dataZIMEventOfRoomAttributesUpdatedResultThe result of the event callback.

Details

When the room attribute in the room changes, it will be notified through this callback.

  • Available since: 1.3.0.

roomAttributesBatchUpdated

roomAttributesBatchUpdated
roomAttributesBatchUpdated(zim: ZIM, data: ZIMEventOfRoomAttributesUpdatedResult): void
Notification of room property changes.

Parameters

NameTypeDescription
zimZIM
dataZIMEventOfRoomAttributesUpdatedResultThe result of the event callback.

Details

When the room attribute in the room changes, it will be notified through this callback.

  • Available since: 1.3.0.

roomMemberAttributesUpdated

roomMemberAttributesUpdated
roomMemberAttributesUpdated(zim: ZIM, data: ZIMEventOfRoomMembersAttributesUpdatedResult): void
Room user property update callback.

Parameters

NameTypeDescription
zimZIMZIM instance.
dataZIMEventOfRoomMembersAttributesUpdatedResultThe result of the event callback.

Details

Details: This callback will be received when a user's property in the room is changed.

ZIMEventOfBlacklistChangedResult

The result of the event callback.

Properties

userList

userList
userList: ZIMUserInfo[]

Updated user information.

action

action

Blacklist operation actions.

ZIMEventOfBroadcastMessageReceivedResult

The result of the event callback.

Properties

message

message
message: ZIMMessage

the broadcast message.

ZIMEventOfCallInvitationAcceptedResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

invitee

invitee
invitee: string

invitee ID.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

ZIMEventOfCallInvitationCancelledResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

inviter

inviter
inviter: string

Inviter ID.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

mode

mode

call mode.

ZIMEventOfCallInvitationCreatedResult

The result of the callInvitationCreated event callback.

Details

After the call invitation is successfully initiated, the user will receive this callback.

Properties

callID

callID
callID: string

call ID.

timeout

timeout
timeout: number

The timeout setting of the call invitation, the unit is seconds.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

caller

caller
caller: string

Call invitation initiator ID.

createTime

createTime
createTime: number

Call invites to create a timestamp.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

The list of call member.

mode

mode

call mode.

ZIMEventOfCallInvitationEndedResult

The result of the callInvitationEnded event callback.

Properties

callID

callID
callID: string

call ID.

mode

mode

Call invitation mode.

caller

caller
caller: string

Call initiator.

operatedUserID

operatedUserID
operatedUserID: string

Call end caller.

extendedData

extendedData
extendedData: string

Call to end extendedData.

endTime

endTime
endTime: number

End the call time stamp.

ZIMEventOfCallInvitationReceivedResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

inviter

inviter
inviter: string

Inviter ID.

timeout

timeout
timeout: number

The timeout setting of the call invitation, the unit is seconds.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

mode

mode

call mode.

caller

caller
caller: string

Call invitation initiator ID.

createTime

createTime
createTime: number

Call invites to create a timestamp.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

The list of call member.

ZIMEventOfCallInvitationRejectedResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

invitee

invitee
invitee: string

invitee ID.

extendedData

extendedData
extendedData: string

Extended field, through which the inviter can carry information to the invitee.

ZIMEventOfCallInvitationTimeoutResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

mode

mode

call mode.

ZIMEventOfCallInviteesAnsweredTimeoutResult

The result of the event callback.

Properties

callID

callID
callID: string

call ID.

invitees

invitees
invitees: string[]

Timeout invitee ID.

ZIMEventOfCallUserStateChangedResult

The result of the callUserStateChanged event callback.

Details

Call invites user status to change callback.

Properties

callID

callID
callID: string

call ID.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

List of members who change status changes in invitation.

ZIMEventOfConnectionStateChangedResult

The result of the event callback.

Properties

state

state

The current connection state after changed.

event

event

The event that caused the connection state to change.

extendedData

extendedData
extendedData: string

Extra information when the event occurs, a standard JSON format string.

ZIMEventOfConversationChangedResult

The result of the event callback.

Properties

infoList

infoList

Changed information about the conversation.

ZIMEventOfConversationTotalUnreadMessageCountUpdatedResult

The result of the event callback.

Properties

totalUnreadMessageCount

totalUnreadMessageCount
totalUnreadMessageCount: number

Updated total unreads.

ZIMEventOfConversationsAllDeletedResult

The result of the event callback.

Properties

count

count
count: number

Number of total conversations deleted.

ZIMEventOfFriendApplicationListChangedResult

The result of the event callback.

Properties

applicationList

applicationList
applicationList: ZIMFriendApplicationInfo[]

Updated friend application list.

action

action

Friend application list operation action.

ZIMEventOfFriendApplicationUpdatedResult

The result of the event callback.

Properties

applicationList

applicationList
applicationList: ZIMFriendApplicationInfo[]

Updated friend application list.

ZIMEventOfFriendInfoUpdatedResult

The result of the event callback.

Properties

friendList

friendList
friendList: ZIMFriendInfo[]

Updated friend information list.

ZIMEventOfFriendListChangedResult

The result of the event callback.

Properties

friendList

friendList
friendList: ZIMFriendInfo[]

Updated friend information list.

action

action

friend list operation actions.

ZIMEventOfGroupAliasUpdatedResult

Returns the result of the group alias update.

Details

Return result of group alias update operation.

  • Use cases: After a group alias update operation is performed, the success or failure can be determined by this callback.

When to

  • Trigger: The result of the group alias update operation is returned.
  • Related APIs: [updateGroupAlias], the group alias is updated.

Properties

groupID

groupID
groupID: string

ID of the group.

groupAlias

groupAlias
groupAlias: string

Alias of the group.

ZIMEventOfGroupApplicationListChangedResult

The result of the event callback.

Properties

applicationList

applicationList
applicationList: ZIMGroupApplicationInfo[]

Group application information.

action

action

Group application list operation actions.

ZIMEventOfGroupApplicationUpdatedResult

The result of the event callback.

Properties

applicationList

applicationList
applicationList: ZIMGroupApplicationInfo[]

Group application information.

ZIMEventOfGroupAttributesUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

The groupID for sending group attribute updates.

infoList

infoList

Information after group attribute update.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operation information after the group attribute is updated.

ZIMEventOfGroupAvatarUrlUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

The groupID where the group avatar url update occurred.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

The updated group avatar URL.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operation information after the group avatar url is updated.

ZIMEventOfGroupMemberInfoUpdatedResult

The result of the event callback.

Properties

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Updated operational information.

userList

userList
userList: ZIMGroupMemberInfo[]

Updated member information.

groupID

groupID
groupID: string

The groupID where the member info change occurred.

ZIMEventOfGroupMemberStateChangedResult

The result of the event callback.

Properties

state

state

Updated membership state.

event

event

Updated member events.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Updated operational information.

userList

userList
userList: ZIMGroupMemberInfo[]

Updated member information.

groupID

groupID
groupID: string

The groupID where the member state change occurred.

ZIMEventOfGroupMutedInfoUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

groupID.

muteInfo

muteInfo
muteInfo: ZIMGroupMuteInfo

Group mute info.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operation information for changes in group mute.

ZIMEventOfGroupNameUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

The groupID where the group name update occurred.

groupName

groupName
groupName: string

The updated group name.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operation information after the group name is updated.

ZIMEventOfGroupNoticeUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

The groupID where the group announcement update occurred.

groupNotice

groupNotice
groupNotice: string

Updated group announcement.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

The group announces the updated operation information.

ZIMEventOfGroupStateChangedResult

The result of the event callback.

Properties

state

state

The state of the group after the change.

event

event

Group related events.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Group information that has been operated.

groupInfo

groupInfo
groupInfo: ZIMGroupFullInfo

Information about group status changes.

ZIMEventOfGroupVerifyInfoUpdatedResult

The result of the event callback.

Properties

groupID

groupID
groupID: string

groupID.

verifyInfo

verifyInfo
verifyInfo: ZIMGroupVerifyInfo

Group verification mode info.

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operation information for changes in group verification mode.

ZIMEventOfMessageDeletedResult

The result of the event callback.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

isDeleteConversationAllMessage

isDeleteConversationAllMessage
isDeleteConversationAllMessage: boolean

Whether to delete all current messages in the conversation.

messageList

messageList
messageList: ZIMMessage[]

List of deleted messages.

messageDeleteType

messageDeleteType
messageDeleteType: ZIMMessageDeleteType

[messageDeleted] Indicates the cause of being triggered.

ZIMEventOfMessageEditedResult

The result of the event callback.

Properties

messageList

messageList
messageList: ZIMMessage[]

List of edited messages.

ZIMEventOfMessageReactionsChangedResult

The result of the event callback.

Properties

reactions

reactions
reactions: ZIMMessageReaction[]

the list of changed reactions.

ZIMEventOfMessageReceiptChangedResult

The result of the event callback.

Properties

infos

infos

List of receipt info.

ZIMEventOfMessageRepliedCountChangedResult

The result of the messageRepliedCountChanged event callback.

Properties

infos

infos

A list of the number of replies to the root message.

ZIMEventOfMessageRepliedInfoChangedResult

The result of the messageRepliedInfoChanged event callback.

Properties

messageList

messageList
messageList: ZIMMessage[]

List of received messages.

ZIMEventOfMessageRevokeReceivedResult

The result of the event callback.

Properties

messageList

messageList
messageList: ZIMRevokeMessage[]

List of revoked messages.

ZIMEventOfMessageSentStatusChangedResult

The result of the event callback.

Properties

infos

infos

List of messages which status changed.

ZIMEventOfReceiveConversationMessageResult

The result of the event callback.

Properties

messageList

messageList
messageList: ZIMMessage[]

List of received messages.

fromConversationID

fromConversationID
fromConversationID: string

Conversation ID.

info

info
info: ZIMMessageReceivedInfo

Attributes associated with receiving a message event.

ZIMEventOfRoomAttributesUpdatedResult

The result of the event callback.

Properties

infos

infos

List of room properties that have changed.

roomID

roomID
roomID: string

room ID.

ZIMEventOfRoomMemberChangedResult

The result of the event callback.

Properties

memberList

memberList
memberList: ZIMUserInfo[]

List of members who has changed in room.

roomID

roomID
roomID: string

room ID.

ZIMEventOfRoomMembersAttributesUpdatedResult

The result of the roomMemberAttributesUpdated event callback.

Properties

roomID

roomID
roomID: string

Room ID.

infos

infos

List of room user attributes update.

operatedInfo

operatedInfo
operatedInfo: ZIMRoomOperatedInfo

Room operation information.

ZIMEventOfRoomStateChangedResult

The result of the event callback.

Properties

state

state
state: ZIMRoomState

The current room connection state after changed.

event

event
event: ZIMRoomEvent

The event that caused the room connection state to change.

extendedData

extendedData
extendedData: string

Extra information when the event occurs, a standard JSON format string.

roomID

roomID
roomID: string

room ID.

ZIMEventOfTokenWillExpireResult

The result of the event callback.

Properties

second

second
second: number

The remaining second before the token expires, The unit is seconds.

ZIMEventOfUserInfoUpdatedResult

The result of the event callback.

Properties

info

info

Updated user information.

ZIMEventOfUserRuleUpdatedResult

The result of the event callback.

Properties

userRule

userRule
userRule: ZIMSelfUserRule

Updated user rule information.

ZIMFileCacheClearConfig

Clear cache configuration.

Details

Clear cache configuration.

Properties

endTime

endTime
endTime: number

Expiration stamp of cache cleanup.

  • Required: Not required.

ZIMFileCacheQueriedResult

Callback for querying the results of the local cache.

  • Related APIs: The local cache is queried using [queryLocalFileCache]. Success or failure is notified by this callback.

Properties

totalFileSize

totalFileSize
totalFileSize: number

Total file size.

ZIMFileCacheQueryConfig

Query cache configuration.

Details

Query cache configuration.

Properties

endTime

endTime
endTime: number

Example Query the expiration timestamp of the cache.

  • Required: Not required.

ZIMFileMessage

File message object.

Details

Identifies the basic parameters of a message.

  • Caution: If the Type parameter of the base class is File during callback, you can force the base class message object to be of this type.

Properties

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMFileMessageLiteInfo

File message lite info object.

Details

Identifies the basic parameters of a message.

Properties

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

ZIMFriendAddConfig

The behavior property of the Add Friend setting.

Details

The behavior property of the Add Friend setting.

Properties

wording

wording
wording: string

Add a friend postscript.

friendAlias

friendAlias
friendAlias: string

Alias of friend.

friendAttributes

friendAttributes
friendAttributes: Record<string, string>

Friend attributes. Up to 5 can be set. The key of the attribute can only be selected from k0 to k4.

ZIMFriendAddedResult

The return result of adding a friend.

Details

The return of the result of adding a friend.

  • Use cases: The callback is used to determine whether a friend has been added.

Related API: [checkUserIsInBlacklist],Add friends.

Properties

friendInfo

friendInfo
friendInfo: ZIMFriendInfo

Friend information.

ZIMFriendAliasUpdatedResult

Return results of updating friend alias.

Details

Return results of updating friend alias.

  • Use cases: After updating friend alias, the success or failure can be known through this callback.

Related API: [updateFriendAlias], update friend alias.

Properties

friendInfo

friendInfo
friendInfo: ZIMFriendInfo

Friend information.

ZIMFriendApplicationAcceptConfig

Behavior attributes for accepting friend requests.

Details

Behavior attributes for accepting friend requests.

Properties

friendAlias

friendAlias
friendAlias: string

friend alias.

friendAttributes

friendAttributes
friendAttributes: Record<string, string>

friend attributes.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration

ZIMFriendApplicationAcceptedResult

Accept the returned result of friend application.

Details

Accept the returned result of friend application.

  • Use cases: After accepting a friend application, the success or failure can be known through this callback. Related API: [acceptFriendApplication], Accept friend application.

Properties

friendInfo

friendInfo
friendInfo: ZIMFriendInfo

Friend information.

ZIMFriendApplicationInfo

Friend application information.

Details

Detailed description: Friend application information.

Properties

applyUser

applyUser
applyUser: ZIMUserInfo

Detail description: If you are the applicant, here is the respondent information; if you are the respondent, here is the applicant information;

wording

wording
wording: string

The wording of friend application information.

createTime

createTime
createTime: number

Friend add time.

updateTime

updateTime
updateTime: number

Friend application status update time.

type

type

Friend application type.

state

state

Friend application state.

ZIMFriendApplicationListQueriedResult

Query the returned results of the friend application list.

Details

Query the returned results of the friend application list.

  • Use cases: This callback will tell you if the operation to query the list of friend application was successful or not.

Related API: [queryFriendApplicationList], Querying the friend application list.

Properties

applicationList

applicationList
applicationList: ZIMFriendApplicationInfo[]

Friend application information list.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMFriendApplicationListQueryConfig

Query the configuration of the friend application list.

Details

Query the configuration of the friend application list.

Properties

count

count
count: number

Total number of current queries.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMFriendApplicationRejectConfig

Behavior attributes for rejecting friend application.

Details

Behavior attributes for rejecting friend application.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration

ZIMFriendApplicationRejectedResult

Reject the returned result of friend application.

Details

Reject the returned result of friend application.

  • Use cases: After rejecting a friend application, the success or failure can be known through this callback. Related API: [rejectFriendApplication], Reject friend application.

Properties

userInfo

userInfo
userInfo: ZIMUserInfo

Applicant user information.

ZIMFriendApplicationSendConfig

The behavior property of the Send Friend Application setting.

Details

The behavior property of the Send Friend Application setting.

Properties

wording

wording
wording: string

Add a friend postscript.

friendAlias

friendAlias
friendAlias: string

Alias of friend.

friendAttributes

friendAttributes
friendAttributes: Record<string, string>

Friend attributes. Up to 5 can be set. The key of the attribute can only be selected from k0 to k4.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMFriendApplicationSentResult

The result of sending a friend application.

Details

The result of sending a friend application.

  • Use cases: After sending the friend application operation, the success can be known through the callback.

Related API: [sendFriendApplication],send friend application

Properties

applicationInfo

applicationInfo
applicationInfo: ZIMFriendApplicationInfo

Friend application information.

ZIMFriendAttributesUpdatedResult

Return results of updating friend attributes.

Details

Return results of updating friend attributes.

  • Use cases: After updating friend attributes, the success or failure can be known through this callback.

Related API: [updateFriendAttributes], update friend attributes.

Properties

friendInfo

friendInfo
friendInfo: ZIMFriendInfo

Friend information.

ZIMFriendDeleteConfig

The behavior property of the Delete Friend setting.

Details

The behavior property of the Delete Friend setting.

Properties

type

type

Delete type.

ZIMFriendInfo

Friend information.

Details

Detailed description: Friend information.

Properties

userID

userID
userID: string

Detail description: UserID of the operator.

friendAlias

friendAlias
friendAlias: string

The alias of friend.

friendAttributes

friendAttributes
friendAttributes: Record<string, string>

Friend attributes. Up to 5 can be set. The key of the attribute can only be selected from k0 to k4.

createTime

createTime
createTime: number

Friend add time.

userName

userName
userName: string

User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

The user avatar, which is custom generated by the developer, is not restricted by special characters and has a maximum length of 500 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.
  • Available since: 2.13.0 and above.

userExtendedData

userExtendedData
userExtendedData: string

Extended field information of the user.

  • Caution: This property has a value only for room users.

ZIMFriendListQueriedResult

The returned result of querying the friends list.

Details

The returned result of querying the friends list.

  • Use cases: This callback will tell you if the operation to query the list of friends was successful or not.

Related API: [queryFriendList], Querying the friends list.

Properties

friendList

friendList
friendList: ZIMFriendInfo[]

Friend information list.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMFriendListQueryConfig

Query the configuration of the friend list.

Details

Query the configuration of the friend list.

Properties

count

count
count: number

Total number of current queries.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMFriendRelationCheckConfig

Check the behavior properties of friend relationships.

Details

Check the behavior properties of friend relationships.

Properties

type

type

Check type.

ZIMFriendRelationInfo

Friend relationship information.

Details

Detailed description: Friend relationship information.

Properties

userID

userID
userID: string

user ID.

type

type

Friend relationship type.

ZIMFriendsDeletedResult

Return results of deleting friends.

Details

Return results of deleting friends.

  • Use cases: After deleting a friend, the success or failure can be known through this callback.

Related API: [sendFriendApplication], Delete friends in batches.

Properties

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of user IDs and reasons for failed deletion.

ZIMFriendsInfoQueriedResult

Return results of querying friend information in batches.

Details

Return results of querying friend information in batches.

  • Use cases: After querying friend information in batches, the success or failure can be known through this callback.

Related API: [queryFriendsInfo], Querying friend information in batches.

Properties

friendInfos

friendInfos
friendInfos: ZIMFriendInfo[]

Friend information.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo

Query the user ID and reason for failed query.

ZIMFriendsRelationCheckedResult

Check the friend relationship result.

Details

The result of sending a friend application.

  • Use cases: After checking the friend relationship, the success or failure can be known through this callback.

Related API: [checkFriendsRelation], check the friend relationship.

Properties

relationInfos

relationInfos
relationInfos: ZIMFriendRelationInfo[]

Friend relationship information list.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

Check the list of user IDs and reasons for friend relationship failure.

ZIMFriendsSearchConfig

Search local friend configuration.

Details

Search local friend configuration.

Properties

keywords

keywords
keywords: string[]

Search keyword list.

isAlsoMatchFriendAlias

isAlsoMatchFriendAlias
isAlsoMatchFriendAlias: boolean

Whether to match friend aliases.

count

count
count: number

Current total number of searches.

nextFlag

nextFlag
nextFlag: number

The starting and ending index of the current search.

ZIMFriendsSearchedResult

Search results returned by local friends.

Details

Search results returned by local friends.

  • Use cases: This callback will tell you if the operation to query the list of friend application was successful or not.

Related API: [searchLocalFriends], Search results returned by local friends.

Properties

friendInfos

friendInfos
friendInfos: ZIMFriendInfo[]

Friend application information list.

nextFlag

nextFlag
nextFlag: number

The index of the current query anchor point.

ZIMGroup

complete group information for group list.

Details

complete group information for group list.

Properties

baseInfo

baseInfo
baseInfo: ZIMGroupInfo

basic group information.

notificationStatus

notificationStatus

group message notification status.

groupAlias

groupAlias
groupAlias: string

the group alias defined by user, which is visible only to that user.

ZIMGroupAdvancedConfig

Group advanced configuration.

Details

Group advanced configuration.

  • Required: required.

Properties

groupAttributes

groupAttributes
groupAttributes: Record<string, string>

Group properties, up to 10 can be configured..

  • Required: Optional.

groupNotice

groupNotice
groupNotice: string

group notice.

  • Required: Optional.

maxMemberCount

maxMemberCount
maxMemberCount: number

The maximum number of group members.

  • Use cases: When you need to limit the number of group members.
  • Required: Optional.
  • Default value: 0.
  • Value range: [0, The default maximum number of group members for the business package].
  • Caution: Supports version 2.15 and above.

joinMode

joinMode
joinMode: ZIMGroupJoinMode

Verification mode for joining the group.

  • Required: Optional.
  • Caution: Supports version 2.15 and above.

inviteMode

inviteMode
inviteMode: ZIMGroupInviteMode

Verification mode for invite to the group.

  • Required: Optional.
  • Caution: Supports version 2.15 and above.

beInviteMode

beInviteMode
beInviteMode: ZIMGroupBeInviteMode

Verification mode for being invited to the group.

  • Required: Optional.
  • Caution: Supports version 2.15 and above.

ZIMGroupAliasUpdatedResult

Returns the result of the group alias update.

Details

Return result of group alias update operation.

  • Use cases: After a group alias update operation is performed, the success or failure can be determined by this callback.

When to

  • Trigger: The result of the group alias update operation is returned.
  • Related APIs: [updateGroupAlias], the group alias is updated.

Properties

groupID

groupID
groupID: string

ID of the group.

groupAlias

groupAlias
groupAlias: string

Alias of the group.

ZIMGroupApplicationInfo

Group application information.

Properties

applyUser

applyUser
applyUser: ZIMUserInfo

Detail description: The applicant is the applicant when applying to join, the invitee when applying to invite, and the inviter when applying by invitation.

wording

wording
wording: string

The wording of group application information.

createTime

createTime
createTime: number

Group application create time.

updateTime

updateTime
updateTime: number

Group application status update time.

type

type

Group application type.

state

state

Group application state.

groupInfo

groupInfo
groupInfo: ZIMGroupInfo

Group information for applying to join the group.

operatedUser

operatedUser

The operator who agrees to join the group application.

ZIMGroupApplicationListQueriedResult

Query the callback of group application list.

Details

Return of group application list query results..

  • Use cases: After querying the group application list, the success or failure can be determined by this callback.
  • Related APIs: [queryGroupApplicationList], query group application list.

Properties

applicationList

applicationList
applicationList: ZIMGroupApplicationInfo[]

Group application list.

nextFlag

nextFlag
nextFlag: number

The next flag.

ZIMGroupApplicationListQueryConfig

Query the group application configuration.

Details

Through this configuration, you can set the total number of queries and the pagination query.

Properties

count

count
count: number

count. It is advised to be no more than 30.

  • Required: Yes.

nextFlag

nextFlag
nextFlag: number

nextFlag.

  • Required: Not required, it is 0 by default for the first time, which means to start the query from the beginning.

ZIMGroupAttributesOperatedResult

Returns the result of a group attribute operation.

Properties

groupID

groupID
groupID: string

Group ID.

errorKeys

errorKeys
errorKeys: string[]

error keys.

ZIMGroupAttributesQueriedResult

The return of query group attribute results.

Details

Returns the result of group attribute query.

  • Use cases: This callback is used to determine the success of a custom property query.
  • When to call /Trigger: Group attribute query results are returned.

Related API: [queryGroupAttributes], query room attributes.

Properties

groupID

groupID
groupID: string

Group ID.

groupAttributes

groupAttributes
groupAttributes: Record<string, string>

Group attributes.

ZIMGroupAttributesUpdateInfo

Group attribute update information.

Details

Group attribute update information.

Properties

action

action

Group attribute update action.

groupAttributes

groupAttributes
groupAttributes: Record<string, string>

group properties.

ZIMGroupAvatarUrlUpdatedResult

Returns the result of the group avatar URL update.

Properties

groupID

groupID
groupID: string

Group ID.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

group avatar URL.

ZIMGroupBeInviteModeUpdatedResult

The result of group beinvite verification mode update.

Properties

groupID

groupID
groupID: string

Group ID.

mode

mode

Group beinvite verification mode.

ZIMGroupConversation

Group session object, extend from ZIMGroupConversation.

Details

Group session object, extend from ZIMGroupConversation.

Properties

mutedExpiredTime

mutedExpiredTime
mutedExpiredTime: long long

The expiration date of the group gag.

isDisabled

isDisabled
isDisabled: boolean

Whether the group session is unavailable.

conversationID

conversationID
conversationID: string

conversationID.

conversationName

conversationName
conversationName: string

conversationName is the same as the groupName/userName value corresponding to the session.

type

type

conversation type.

unreadMessageCount

unreadMessageCount
unreadMessageCount: number

Session unread.

lastMessage

lastMessage
lastMessage: ZIMMessage

last message.

orderKey

orderKey
orderKey: number

OrderKey is used to describe the order of messages in the session. The larger orderKey is, the newer it is.

notificationStatus

notificationStatus

session notification status.

conversationAvatarUrl

conversationAvatarUrl
conversationAvatarUrl: string

Detail description: Conversation avatar URL. The peer to peer chat conversation avatar URL is the same as the user avatar URL, and the group chat conversation avatar URL is the same as the group avatar URL.

Use Limit: the maximum number of characters is 500 bytes. There is no limit on special characters.

isPinned

isPinned
isPinned: boolean

Whether the conversation is pinned.

mentionedInfoList

mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]

When reminded in a message or reminded to everyone in a conversation, this array will record the reminders.

  • Use cases: For example, you can display the number of reminders in the conversation list based on this array, and also display which user's reminder it is.

conversationAlias

conversationAlias
conversationAlias: string

After the friend remarks are set through [updateFriendAlias], this parameter is changed for each chat conversation. After setting a group alias by [updateGroupAlias], the corresponding group chat conversation's parameter will be modified synchronously.

  • Use cases: After update alias for friends or groups, the corresponding conversation chooses to display the alias over the conversation name when rendering the conversation page.

marks

marks
marks: std::vector\<int>

Describes all the existing marks for the conversation.

  • Use cases: The business layer can group logic, etc., according to different conversations with different marks.

draft

draft
draft: string

Conversation draft, when draft set conversation will carry this parameter.

ZIMGroupCreatedResult

Returns the result of creating a group.

Properties

groupInfo

groupInfo
groupInfo: ZIMGroupFullInfo

Group full info.

userList

userList
userList: ZIMGroupMemberInfo[]

user list.

errorUserList

errorUserList
errorUserList: ZIMErrorUser[]

error user list.

ZIMGroupDismissedResult

Returns the result of dismiss a group.

Properties

groupID

groupID
groupID: string

Group ID.

ZIMGroupEnterInfo

Information about group members when they join the group.

Properties

enterType

enterType
enterType: number

Group entry type.

enterTime

enterTime
enterTime: number

The timestamp of the server when joining the group.

operatedUser

operatedUser

The operator who agrees to the application to join the group or the inviter who invites the application to join the group.

ZIMGroupFullInfo

complete group information.

Details

complete group information.

Properties

baseInfo

baseInfo
baseInfo: ZIMGroupInfo

basic group information.

groupAttributes

groupAttributes
groupAttributes: Record<string, string>

group properties.

groupNotice

groupNotice
groupNotice: string

Group of announcement.

notificationStatus

notificationStatus

group message notification status.

mutedInfo

mutedInfo
mutedInfo: ZIMGroupMuteInfo

Group mute info.

createTime

createTime
createTime: number

The timestamp of the server when the group was created.

  • Caution: Supports version 2.15 and above.

maxMemberCount

maxMemberCount
maxMemberCount: number

The maximum number of group members.

  • Caution: Supports version 2.15 and above.

verifyInfo

verifyInfo
verifyInfo: ZIMGroupVerifyInfo

Verification mode for joining the group.

  • Caution: Supports version 2.15 and above.

groupAlias

groupAlias
groupAlias: string

the group alias defined by user, which is visible only to that user.

ZIMGroupInfo

group information.

Details

group information.

Properties

groupID

groupID
groupID: string

groupID.

Required or not: Mandatory, it will be automatically generated in the background.

Value: Supports only digits, English characters, and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~' and not by '#' at the beginning.

groupName

groupName
groupName: string

Group name.

  • Required: Optional.

Value: A string of up to 50 bytes.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string
  • Required: not required.

Use Limit: the maximum number of characters is 500 bytes. There is no limit on special characters.

ZIMGroupInfoQueriedResult

Returns the result of the group info queried.

Properties

groupInfo

groupInfo
groupInfo: ZIMGroupFullInfo

Group full info.

ZIMGroupInviteApplicationAcceptConfig

The behavior property of the accept group invite application setting.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupInviteApplicationAcceptedResult

The return of the results of the group invite application accept.

Properties

groupID

groupID
groupID: string

Group ID.

inviterUserID

inviterUserID
inviterUserID: string

Inviter user ID.

ZIMGroupInviteApplicationRejectConfig

The behavior property of the reject group invite application setting.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupInviteApplicationRejectedResult

The return of the results of the group invite application reject.

Properties

groupID

groupID
groupID: string

Group ID.

inviterUserID

inviterUserID
inviterUserID: string

Inviter user ID.

ZIMGroupInviteApplicationSendConfig

The behavior property of the send group invite application setting.

Properties

wording

wording
wording: string

Postscript to the application operation.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupInviteApplicationsSentResult

The return of the results of the group invite application sent.

Properties

groupID

groupID
groupID: string

Group ID.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of users whose invitation failed.

ZIMGroupInviteModeUpdatedResult

The result of group invite verification mode update.

Properties

groupID

groupID
groupID: string

Group ID.

mode

mode

Group invite verification mode.

ZIMGroupJoinApplicationAcceptConfig

The behavior property of the accept group join application setting.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupJoinApplicationAcceptedResult

The return of the results of the group join application accept.

Properties

groupID

groupID
groupID: string

Group ID.

userID

userID
userID: string

Applicant user ID.

ZIMGroupJoinApplicationRejectConfig

The behavior property of the reject group join application setting.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupJoinApplicationRejectedResult

The return of the results of the group join application reject.

Properties

groupID

groupID
groupID: string

Group ID.

userID

userID
userID: string

Applicant user ID.

ZIMGroupJoinApplicationSendConfig

The behavior property of the send group join application setting.

Properties

wording

wording
wording: string

Postscript to the application operation.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMGroupJoinApplicationSentResult

The return of the results of the group join application sent.

Properties

groupID

groupID
groupID: string

Group ID.

ZIMGroupJoinModeUpdatedResult

The result of group join verification mode update.

Properties

groupID

groupID
groupID: string

Group ID.

mode

mode

Group join verification mode.

ZIMGroupJoinedResult

Returns the result of Joining a group.

Properties

groupInfo

groupInfo
groupInfo: ZIMGroupFullInfo

Group full info.

ZIMGroupLeftResult

Returns the result of leave a group.

Properties

groupID

groupID
groupID: string

Group ID.

ZIMGroupListQueriedResult

Returns the results of the query group list.

Properties

groupList

groupList
groupList: ZIMGroup[]

Group list.

ZIMGroupMemberCountQueriedResult

Returns the result of querying the group member count.

Details

Returns the result of querying the group member count.

  • Use cases: After querying the group member count, you can use the callback to determine whether the query is successful.
  • When to call /Trigger: The result is displayed after the group member count is queried.

Related API:[queryGroupMemberCount], query the group member count.

Properties

groupID

groupID
groupID: string

Group ID.

count

count
count: number

group member count.

ZIMGroupMemberInfo

Group member information.

Details

Group member information.

Properties

memberNickname

memberNickname
memberNickname: string

Group member nickname.

memberRole

memberRole
memberRole: number

group role.

memberAvatarUrl

memberAvatarUrl
deprecated
memberAvatarUrl: string

Detailed description: group member avatar URL.

User Limit: the maximum number of characters is 500 bytes. There is no limit on special characters.

Deprecated
Deprecated since version 2.13.0. To obtain the URL of a group member's avatar, please refer to userAvatarUrl.

muteExpiredTime

muteExpiredTime
muteExpiredTime: number

Group member's mute expiration time. When it's 0, it means no mute; when it's -1, it means permanent mute.

groupEnterInfo

groupEnterInfo
groupEnterInfo: ZIMGroupEnterInfo

Information about group members when they join the group.

  • Caution: Supports version 2.15 and above.

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

userName

userName
userName: string

User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

The user avatar, which is custom generated by the developer, is not restricted by special characters and has a maximum length of 500 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.
  • Available since: 2.13.0 and above.

userExtendedData

userExtendedData
userExtendedData: string

Extended field information of the user.

  • Caution: This property has a value only for room users.

ZIMGroupMemberInfoQueriedResult

Returns the result of the group member query.

Properties

groupID

groupID
groupID: string

Group ID.

userInfo

userInfo

Group member information.

ZIMGroupMemberKickedResult

Returns the result of kicking out a group member.

Properties

groupID

groupID
groupID: string

Group ID.

kickedUserIDs

kickedUserIDs
kickedUserIDs: string[]

user list.

errorUserList

errorUserList
errorUserList: ZIMErrorUser[]

List of users who failed to kick.

ZIMGroupMemberListQueriedResult

Returns the result of querying the group member list.

Details

Returns the result of querying the group member list.

  • Use cases: After querying the group member list, you can use the callback to determine whether the query is successful.
  • When to call /Trigger: The result is displayed after the group member list is queried.

Related API:[queryGroupMemberList], query the group member list.

Properties

groupID

groupID
groupID: string

Group ID.

userList

userList
userList: ZIMGroupMemberInfo[]

user list.

nextFlag

nextFlag
nextFlag: number

next flag.

ZIMGroupMemberMuteConfig

Group members mute configuration.

Details

Group members mute configuration.

  • Required: required.

Properties

duration

duration
duration: number

Group members mute duration, the unit is seconds. The value is -1, which means permanent mute. If you need to implement non-permanent mute, the upper limit is 604800 (7 days). If you need to increase it, please contact ZEGO technical support.

  • Required: Required.

ZIMGroupMemberMutedListQueriedResult

Returns the result of querying the group muted member list.

Details

Returns the result of querying the group muted member list.

  • Use cases: After querying the group muted member list, you can use the callback to determine whether the query is successful.

When to trigger: The result is displayed after the group muted member list is queried.

  • Related APIs: [queryGroupMemberMutedList], query the group muted member list.

Properties

groupID

groupID
groupID: string

group ID

nextFlag

nextFlag
nextFlag: number

nextFlag.

userList

userList
userList: ZIMGroupMemberInfo[]

user list.

ZIMGroupMemberMutedListQueryConfig

Group muted member list query configuration.

Details

Group muted member list query configuration.

Properties

count

count
count: number

count.

  • Required: Required.

nextFlag

nextFlag
nextFlag: number

nextFlag.

  • Required: Not required, it is empty by default for the first time, which means to start the query from the beginning.

ZIMGroupMemberNicknameUpdatedResult

Returns the result of the member nickname update.

Properties

groupID

groupID
groupID: string

Group ID.

forUserID

forUserID
forUserID: string

user ID.

nickname

nickname
nickname: string

nickname.

ZIMGroupMemberQueryConfig

group member query configuration.

Details

group member query configuration.

Properties

count

count
count: number

count. Quantity, upper limit is 100, over 100 will be treated as 100.

  • Required: Required.

nextFlag

nextFlag
nextFlag: number

nextFlag.

  • Required: Not required, it is empty by default for the first time, which means to start the query from the beginning.

ZIMGroupMemberRoleUpdatedResult

Returns the result of the member role update.

Properties

groupID

groupID
groupID: string

Group ID.

forUserID

forUserID
forUserID: string

user ID.

role

role
role: number

role.

ZIMGroupMemberSearchConfig

group member search configuration.

Details

group member search configuration.

Properties

count

count
count: number

count.

  • Required: Required.

nextFlag

nextFlag
nextFlag: number

The flag for querying, fill in 0 when calling the interface for the first time. When calling the interface again later, fill in the nextFlag returned from the callback to retrieve the remaining data.

  • Required: Not required.

keywords

keywords
keywords: string[]

Search keywords, up to 5 keywords are supported, otherwise an error will be reported. For example: passing in "1" and "2" will make the search results only show group members whose names contain both keywords "1" and "2".

  • Required: No
  • Caution: Up to 5 keywords can be entered, otherwise an error will be reported.

isAlsoMatchGroupMemberNickname

isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: boolean

Whether the search scope includes group member user nickname. Default is false.

  • Required: No.
  • Default value: false

ZIMGroupMemberSimpleInfo

Group member simple information.

Properties

memberNickname

memberNickname
memberNickname: string

Group member nickname.

memberRole

memberRole
memberRole: number

group role.

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

userName

userName
userName: string

User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

The user avatar, which is custom generated by the developer, is not restricted by special characters and has a maximum length of 500 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.
  • Available since: 2.13.0 and above.

userExtendedData

userExtendedData
userExtendedData: string

Extended field information of the user.

  • Caution: This property has a value only for room users.

ZIMGroupMembersMutedResult

Returns the result of mute group members.

Details

Returns the result of a group mute operation.

  • Use cases: After performing a group mute operation, whether it is successful or not can be known through this result.

Related API: [muteGroup], mute group members.

Properties

groupID

groupID
groupID: string

group ID

isMute

isMute
isMute: boolean

Group members mute or lift group members mute.

duration

duration
duration: number

Duration of group member mute, in seconds.

mutedUserIDs

mutedUserIDs
mutedUserIDs: string[]

List of group member IDs successfully modified to mute status.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of group members failed to modify to mute status.

ZIMGroupMembersSearchedResult

Returns the result of search a group members.

Details

Returns the result of a group member search operation.

  • Use cases: After performing a group member search operation, whether it is successful or not can be known through this callback.

Related API: [searchLocalGroupMembers], search for group members.

Properties

groupID

groupID
groupID: string

Group ID.

userList

userList
userList: ZIMGroupMemberInfo[]

The list of group member search results.

nextFlag

nextFlag
nextFlag: number

Pagination flag, fill in 0 when calling the interface for the first time. Fill in the nextFlag returned from the Promise callback for subsequent interface calls to retrieve the remaining data.

ZIMGroupMessageReceiptMemberListQueriedResult

Callback interface for querying the specific read/unread member list of group receipt messages.

Details

Supported version: 2.5.0 and above.

Detailed description: The callback interface for querying the specific read/unread member list of the group receipt message.

Business scenario: Developers can judge whether the sending is successful through [errorCode] in the callback.

Notification timing: When the developer calls the [queryGroupMessageReceiptReadMemberList] / [queryGroupMessageReceiptUnreadMemberList] interface, this callback will be triggered.

Properties

nextFlag

nextFlag
nextFlag: number

Query the flag corresponding to the next page, which is used for the next flag parameter of [ZIMGroupMessageReceiptMemberQueryConfig].

userList

userList
userList: ZIMGroupMemberInfo[]

Query the list of successful group users.

groupID

groupID
groupID: string

Group ID.

ZIMGroupMessageReceiptMemberQueryConfig

Details

Group message receipt read/unread member query configuration.

Properties

count

count
count: number
  • Required: Required.

nextFlag

nextFlag
nextFlag: number

Detailed description: The next sign. Initially fill in 0, then get the next next flag from the [ZIMGroupMessageReceiptMemberListQueriedResult] callback.

ZIMGroupMuteConfig

Group mute configuration.

Details

Group mute configuration.

  • Required: required.

Properties

mode

mode

Group mute mode.

  • Default value: All.
  • Required: Required.

duration

duration
duration: number

Group mute duration, the unit is seconds. The value is -1, which means permanent mute. If you need to implement non-permanent mute, the upper limit is 604800 (7 days). If you need to increase it, please contact ZEGO technical support.

  • Required: Required.

roles

roles
roles: number[]

Group role list.

  • Required: This field is only meaningful when ZIMGroupMuteMode is set to Custom.
  • Caution: When there is a 3 (ordinary user) in the list, other roles must also be present and cannot be 1, 2, or 4. If only muting ordinary users is needed, ZIMGroupMuteMode should be set to Normal.

ZIMGroupMuteInfo

Group mute information.

Details

Group mute information.

Properties

mode

mode

Group mute mode.

expiredTime

expiredTime
expiredTime: number

Group mute expiration time, measured in seconds. When it's 0, there is no mute; when it's -1, it means permanent mute.

roles

roles
roles: number[]

Detail description: Role list muted in the group.

ZIMGroupMutedResult

Returns the result of mute group.

Details

Returns the result of a group mute operation.

  • Use cases: After performing a group mute operation, whether it is successful or not can be known through this result.

Related API: [muteGroup], mute group.

Properties

groupID

groupID
groupID: string

Group ID.

isMute

isMute
isMute: boolean

mute of unmute.

mutedInfo

mutedInfo
mutedInfo: ZIMGroupMuteInfo

mute info

ZIMGroupNameUpdatedResult

Returns the result of the group name update.

Properties

groupID

groupID
groupID: string

Group ID.

groupName

groupName
groupName: string

group name.

ZIMGroupNoticeUpdatedResult

Returns the result of the group notice update.

Properties

groupID

groupID
groupID: string

Group ID.

groupNotice

groupNotice
groupNotice: string

group notice.

ZIMGroupOperatedInfo

The group causes the event to change the operator's information.

Details

The group causes the event to change the operator's information.

Properties

operatedUserInfo

operatedUserInfo
deprecated
operatedUserInfo: ZIMGroupMemberInfo

Group member information.

Deprecated
Deprecated since version 2.3.0, please use other properties of this class. At the same time, the attribute class cannot obtain the avatar URL information of group members.

userID

userID
userID: string

The operator's user ID.

userName

userName
userName: string

The operator's username.

memberNickname

memberNickname
memberNickname: string

The operator's group member nickname.

memberRole

memberRole
memberRole: number

The operator's group member role.

ZIMGroupOwnerTransferredResult

Returns the result of the group owner assignment.

Properties

groupID

groupID
groupID: string

Group ID.

toUserID

toUserID
toUserID: string

user ID.

ZIMGroupSearchConfig

Group search configuration.

Details

Group search configuration.

Properties

count

count
count: number

count.

  • Required: Required.

nextFlag

nextFlag
nextFlag: number

The flag used to search groups.

  • Required: The flag should be 0 when you search groups for the first time. After that, the flag should be the same as the nextFlag from the search result Promise to get the next page data.

keywords

keywords
keywords: string[]

Search keywords. For example: passing in "1" and "2" will make the search results only show groups whose group names contain both keywords "1" and "2".

  • Required: No
  • Caution: Up to 5 keywords can be entered, otherwise an error will be reported.

isAlsoMatchGroupMemberNickname

isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: boolean

Whether the search scope includes group member user nicknames. Default is false.

  • Required: No.
  • Default value: false

isAlsoMatchGroupMemberUserName

isAlsoMatchGroupMemberUserName
isAlsoMatchGroupMemberUserName: boolean

Whether the search scope includes group member user names. Default is false.

  • Required: No.
  • Default value: false

ZIMGroupSearchInfo

Group search info.

Details

Group search info.

Properties

groupInfo

groupInfo
groupInfo: ZIMGroupInfo

group info.

userList

userList
userList: ZIMGroupMemberInfo[]

Group member information

ZIMGroupUsersInvitedResult

The result of the user being invited to the group is returned.

Properties

groupID

groupID
groupID: string

Group ID.

userList

userList
userList: ZIMGroupMemberInfo[]

user list.

errorUserList

errorUserList
errorUserList: ZIMErrorUser[]

List of users who failed to invite.

ZIMGroupVerifyInfo

Verification mode for joining the group.

Properties

joinMode

joinMode
joinMode: ZIMGroupJoinMode

Verification mode for joining the group.

inviteMode

inviteMode
inviteMode: ZIMGroupInviteMode

Verification mode for invite to the group.

beInviteMode

beInviteMode
beInviteMode: ZIMGroupBeInviteMode

Verification mode for being invited to the group.

ZIMGroupsSearchedResult

Returns the result of search a group.

Details

Returns the result of a group search operation.

  • Use cases: After performing a group search operation, whether it is successful or not can be known through this callback.

Related API: [searchLocalGroups], search for groups.

Properties

groupSearchInfoList

groupSearchInfoList
groupSearchInfoList: ZIMGroupSearchInfo[]

GroupInfo.

nextFlag

nextFlag
nextFlag: number

The next flag.

ZIMImageMessage

Image message object.

Details

Identifies the basic parameters of a message.

  • Caution: If the Type parameter of the base class is Image during callback, you can force the base class message object to be of this type.

Properties

thumbnailLocalPath

thumbnailLocalPath
thumbnailLocalPath: string

Detailed description: The thumbnail local path of the image file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

thumbnailDownloadUrl

thumbnailDownloadUrl
thumbnailDownloadUrl: string

Detail description: Thumbnail external download URL of the image file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

largeImageLocalPath

largeImageLocalPath
largeImageLocalPath: string

Detailed description: The large image local path of the image file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

largeImageDownloadUrl

largeImageDownloadUrl
largeImageDownloadUrl: string

Detail description: large Image external download URL of the image file. When developers upload large Images to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

originalImageWidth

originalImageWidth
originalImageWidth: number

Original image width.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the original image,the unit is pixel.

originalImageHeight

originalImageHeight
originalImageHeight: number

Original image height.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the original image,the unit is pixel.

largeImageWidth

largeImageWidth
largeImageWidth: number

Large image width. When sending local images, the ZIM service will compress the shortest side of the original image to 720 pixels, with the other side being scaled proportionally. When the shortest side of the original image is less than 720 pixels, no compression is applied.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the large image, the unit is pixel.

largeImageHeight

largeImageHeight
largeImageHeight: number

Large image height. When sending local images, the ZIM service will compress the shortest side of the original image to 720 pixels, with the other side being scaled proportionally. When the shortest side of the original image is less than 720 pixels, no compression is applied.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the large image, the unit is pixel.

thumbnailWidth

thumbnailWidth
thumbnailWidth: number

Thumbnail width. When sending local images, the ZIM service will compress the shortest side of the original image to 198 pixels, with proportional scaling applied to the other side. If the shortest side of the original image is smaller than 198 pixels, no compression will be performed.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the thumbnail, the unit is pixel.

thumbnailHeight

thumbnailHeight
thumbnailHeight: number

Thumbnail height. When sending local images, the ZIM service will compress the shortest side of the original image to 198 pixels, with proportional scaling applied to the other side. If the shortest side of the original image is smaller than 198 pixels, no compression will be performed.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the thumbnail, the unit is pixel.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMImageMessageLiteInfo

Image message lite info object.

Details

Identifies the basic parameters of a image message.

Properties

thumbnailLocalPath

thumbnailLocalPath
thumbnailLocalPath: string

Detailed description: The thumbnail local path of the image file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

thumbnailDownloadUrl

thumbnailDownloadUrl
thumbnailDownloadUrl: string

Detail description: Thumbnail external download URL of the image file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

largeImageLocalPath

largeImageLocalPath
largeImageLocalPath: string

Detailed description: The large image local path of the image file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

largeImageDownloadUrl

largeImageDownloadUrl
largeImageDownloadUrl: string

Detail description: large Image external download URL of the image file. When developers upload large Images to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

originalImageWidth

originalImageWidth
originalImageWidth: number

Original image width.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the original image,the unit is pixel.

originalImageHeight

originalImageHeight
originalImageHeight: number

Original image height.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the original image,the unit is pixel.

largeImageWidth

largeImageWidth
largeImageWidth: number

Large image width. When sending local images, the ZIM service will compress the shortest side of the original image to 720 pixels, with the other side being scaled proportionally. When the shortest side of the original image is less than 720 pixels, no compression is applied.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the large image, the unit is pixel.

largeImageHeight

largeImageHeight
largeImageHeight: number

Large image height. When sending local images, the ZIM service will compress the shortest side of the original image to 720 pixels, with the other side being scaled proportionally. When the shortest side of the original image is less than 720 pixels, no compression is applied.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the large image, the unit is pixel.

thumbnailWidth

thumbnailWidth
thumbnailWidth: number

Thumbnail width. When sending local images, the ZIM service will compress the shortest side of the original image to 198 pixels, with proportional scaling applied to the other side. If the shortest side of the original image is smaller than 198 pixels, no compression will be performed.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the width of the thumbnail, the unit is pixel.

thumbnailHeight

thumbnailHeight
thumbnailHeight: number

Thumbnail height. When sending local images, the ZIM service will compress the shortest side of the original image to 198 pixels, with proportional scaling applied to the other side. If the shortest side of the original image is smaller than 198 pixels, no compression will be performed.

  • Use cases: When the user needs to draw the image UI, the parameter used to determine the height of the thumbnail, the unit is pixel.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

ZIMLogConfig

Log configuration

Details

Configure the storage path of log files and the maximum log file size.

Properties

logPath

logPath
logPath: string

The storage path of the log files. Refer to the official website document for the default path.

logSize

logSize
logSize: number

The maximum log file size (Bytes). The default maximum size is 5MB (5 * 1024 * 1024 Bytes)

ZIMLoginConfig

Configuration of login-related parameters.

Details

Login-related parameters.

  • Use cases: Used to set different parameters during login.

Properties

userName

userName
userName: string

User name.

  • Use cases: Used in the scenario where user nickname is modified during login, leave it blank if no change is needed.
  • Required: No.

token

token
token: string

Token carried during login.

  • Use cases: Only pass this parameter in the scenario where token is used for authentication.
  • Required: No.

isOfflineLogin

isOfflineLogin
isOfflineLogin: boolean

Whether it is offline login.

  • Use cases: Set this parameter to true when performing offline login.
  • Required: No.
  • Default value: false.

customStatus

customStatus
customStatus: string

User-defined status, with a default maximum of 64 bytes and a default expiration time of 1 day. After expiration, it will be reset to an empty string. When logging in, if this field is an empty string (default is an empty string), the current user's custom status will not be modified.

ZIMMediaDownloadConfig

Configuration for downloading media files.

Properties

messageInfoIndex

messageInfoIndex
messageInfoIndex: number

Detailed description: The index of the array where a file in the download multiple message is located.

  • Required: Required when downloading a multiple message file.

ZIMMediaDownloadedResult

Callback for the result of downloading the file for the media message.

Details

Supported Versions: 2.1.0 and above.

Detail description: Callback for the result of downloading the file for the media message.

Business scenario: The developer can use the [errorCode] in the callback to determine whether the insertion is successful.

Notification timing: This callback is triggered when the developer calls the [downloadMediaFile] interface.

Related interfaces: Downloading the file for the media message through [downloadMediaFile], and the success will be notified through this callback.

Properties

message

message
message: ZIMMediaMessage

Message object.

ZIMMediaMessage

Base class for media message objects.

Details

Detail description: Identifies a media message.

This base class is the basis of all media messages and contains the properties required by media messages.

Properties

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMMediaMessageLiteInfo

Base class for media message lite info objects.

Details

Detail description: Identifies a media message lite info.

This base class is the basis of all media messages lite info and contains the properties required by media messages lite info.

Properties

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

ZIMMediaMessageSendNotification

The notification callback when the media message is sent, you can get the relevant information before the message object is sent through this notification

Details

Detailed description: Through this notification, developers can obtain relevant information before the message object is sent, such as localMessageID, etc.

Business scenario: When developers need to record and cache relevant information before sending a message, they can obtain it by listening to the notification.

If no monitoring is required, it can be passed null.

Methods

onMessageAttached

onMessageAttached
onMessageAttached(message: ZIMMediaMessage): void
The incoming message object is given a localMessgeID and returned.

Parameters

NameTypeDescription
messageZIMMediaMessageThe currently sent message object.

Details

Supported version: 2.4.0 and above.

The incoming message object is given a localMessgeID and returned.

Service scenario: Before a message is successfully sent, it can correspond to its localMessageID to implement loading before sending.

Notification time: Triggered after the message is sent and before the message is successfully sent.

ZIMMediaMessageSentResult

Callback of the result of sending the media message.

  • Related APIs: This callback is triggered when the developer calls the [sendMediaMessage] interfaces.
  • Available since: 2.2.0 or above.

Properties

message

message
message: ZIMMediaMessage

The sent message object, from which parameters such as messageID can be obtained.

ZIMMessage

Base class of message object

Details

Identifies the basic parameters of a message.

  • Caution: Some of the parameters, such as Message ID, only have values ​​during the callback. Developers do not need to assign values ​​to these parameters when they actively create this object for sending messages.

Properties

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMMessageDeleteConfig

Details

Delete configurations related to messages.

Properties

isAlsoDeleteServerMessage

isAlsoDeleteServerMessage
isAlsoDeleteServerMessage: boolean

Whether to remove flags for server messages.

  • Required: not required.
  • Default value: false.

ZIMMessageDeletedResult

A callback to delete a message.

Details

Supported versions: 2.0.0 and above.

Detail description: After the message is deleted, the result of message deletion is returned through this callback.

Business scenario: The developer can judge whether the deletion is successful through the [errorCode] in the callback.

Notification timing: Triggered after calling the delete message interface [deleteMessage].

Related interface: [deleteMessage].

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation Type.

ZIMMessageEditConfig

Details

(Empty Class) Configurations related to editing messages.

ZIMMessageEditedResult

Callback of the result of editing the message.

  • Related APIs: This callback is triggered when the developer calls the [editMessage] interfaces.
  • Available since: 2.20.0 or above.

Properties

message

message
message: ZIMMessage

The edited message object, from which parameters such as editedTime and editorUserID can be obtained.

ZIMMessageExportConfig

Details

Export the configuration of the message. The Config is currently a reserved parameter.

ZIMMessageImportConfig

Details

Import the configuration of the message. The Config is currently a reserved parameter.

ZIMMessageInsertedResult

Callback of the result of inserting the message.

Details

Supported Versions: 2.4.0 and above.

Detail description: A callback for the result of inserting a local message.

Business scenario: The developer can use the [errorCode] in the callback to determine whether the insertion is successful.

Notification timing: This callback is triggered when the developer calls the [insertMessageToLocalDB] interface.

Related interfaces: Insert local messages through [insertMessageToLocalDB], and the success or failure will be notified through this callback.

Properties

message

message
message: ZIMMessage

Message object.

ZIMMessageLiteInfo

Base class of message lite info object.

Details

Identifies the basic parameters of a message.

Properties

type

type

Identifies the type of this message.

ZIMMessageLocalExtendedDataUpdatedResult

Callback for updating message local extension fields.

  • Use cases: Developers can determine whether the operation is successful through the [errorCode] in this callback.

Notification timing: This callback is triggered when developers call the [updateMessageLocalExtendedData] interface.

Properties

message

message
message: ZIMMediaMessage

Updated of the message.

ZIMMessageMentionedInfo

message mention information.

Details

message mention information.

Properties

messageID

messageID
messageID: number

Message ID, used to match the notification information to which message it belongs to

Required or not: Developers do not need to fill in.'‘’

fromUserID

fromUserID
fromUserID: string

From which user.

  • Required: Developers do not need to fill in."

type

type

Type of notification, used to distinguish between reminding oneself and reminding everyone.

  • Required: Developers do not need to fill in.

messageSeq

messageSeq
messageSeq: number

message seq.

ZIMMessagePinStatusChangeInfo

Notification of the message pinned status changed.

Details

When a message in a conversation is successfully pinned or unpinned and a notification is raised, this structure can be used to obtain the operated message and its current pinned status.

Properties

pinStatus

pinStatus

Message pinned status.

message

message
message: ZIMMessage

The root message object.

ZIMMessagePinnedResult

Callback of the result of the message pinned or unpinned.

  • Related APIs: This callback is triggered when the developer calls the [pinMessage] interfaces.
  • Available since: 2.25.0 or above.

ZIMMessageQueriedResult

The developer uses this callback to get a list of queried messages, which can be used to display historical messages.

Details

Callback result of query message list.

  • Use cases: Through this callback, developers can obtain the list of queried messages and display historical messages.
  • When to call /Trigger: After calling queryHistoryMessage, the list of queried messages is notified through this callback.
  • Related APIs: Use [queryPeerMessage] to query historical messages. The queried message list is notified through this callback.
  • Available since: 2.0.0 or later.

Properties

messageList

messageList
messageList: ZIMMessage[]

The message list of the query result.

conversationID

conversationID
conversationID: string

ConversationID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation Type.

ZIMMessageQueryConfig

Example Query message configuration.

Details

Example Query the configurations of messages.

Properties

nextMessage

nextMessage
nextMessage: ZIMMessage

Query the anchor point of the message.

  • Required: This parameter is not required for the first query but is required for subsequent paging queries.

count

count
count: number

Number of query messages.

  • Required: Yes.

reverse

reverse
reverse: boolean

Indicates whether the query is in reverse order.

  • Required: not required.
  • Default value: false.

ZIMMessageReaction

message reaction infos

Details

message reaction infos.

Properties

conversationID

conversationID
conversationID: string

conversationID.

conversationType

conversationType
conversationType: ZIMConversationType

conversation type.

messageID

messageID
messageID: number

Detail description: reaction message ID.

reactionType

reactionType
reactionType: string

Type of reaction, defined by you, with a maximum length of 32 bytes.

isSelfIncluded

isSelfIncluded
isSelfIncluded: boolean

The reaciton users if included myself.

totalCount

totalCount
totalCount: number

The reaction users number.

userList

userList

Reaction user info list.

ZIMMessageReactionAddedResult

Callback of the result of adding message reaction.

Details

After the developer adding message reaction, execute the callback of the result.

  • When to call: This callback is triggered when a developer invokes the [addMessageReaction] interface.
  • Caution: Revoke message through [addMessageReaction]. Success or failure will be notified through this callback.
  • Available since: 2.10.0 or above.

Properties

reaction

reaction

The reaction infos.

ZIMMessageReactionDeletedResult

Callback of the result of deleting message reaction.

Details

After the developer adding message reaction, execute the callback of the result.

  • When to call: This callback is triggered when a developer invokes the [deleteMessageReaction] interface.
  • Caution: Revoke message through [deleteMessageReaction]. Success or failure will be notified through this callback.
  • Available since: 2.10.0 or above.

Properties

reaction

reaction

The reaction infos.

ZIMMessageReactionUserInfo

reaction user information.

Details

Detail description: A class describing reaction user.

Properties

userID

userID
userID: string

user ID

ZIMMessageReactionUserListQueriedResult

Callback of the result of query message reaction user list.

Details

After the developer querying message reaction userList, execute the callback of the result.

  • When to call: This callback is triggered when a developer invokes the [queryMessageReactionUserList] interface.
  • Caution: Revoke message through [queryMessageReactionUserList]. Success or failure to querying will be notified through this callback.
  • Available since: 2.10.0 or above.

Properties

message

message
message: ZIMMessage

The message object related to the reaction.

userList

userList

Query the detailed list of users' reactions.

reactionType

reactionType
reactionType: string

Types of reaction.

nextFlag

nextFlag
nextFlag: number

Query anchor, used for the next page to be passed to [ZIMMessageReactionUserQueryConfig] for querying.

totalCount

totalCount
totalCount: number

The total number of users who reaction.

ZIMMessageReactionUserQueryConfig

Configuration for querying reaction user list

Details

When querying reaction member, you need to configure this object.

Properties

nextFlag

nextFlag
nextFlag: number

The flag of the paging query. For the first query, set this field to an empty string. If the "nextFlag" field of the [ZIMMessageReactionUserListQueriedCallback] callback is not an empty string, it needs to be set here to continue the query on the next page.

  • Required: Not required.

count

count
count: number

How many members are retrieved in one query, 100 at most. Exceeding 100 will result in an error.

  • Caution: To obtain members in pages to reduce overhead, it is recommended to obtain within 20 members at a time. If the value is 0, the SDK will query 100 members by default.
  • Required: Required.

reactionType

reactionType
reactionType: string

reaction type, defined by you.

ZIMMessageReceiptInfo

receipt information.

Details

Detailed description: receipt information.

Properties

status

status

Detail description: receipt status.

messageID

messageID
messageID: string

Message ID.

Business scenario: Developers can match the loaded message list according to this ID.

Is it required: No, SDK fills in.

conversationID

conversationID
conversationID: string

Session ID.

Business scenario: Receipt information used to indicate which session this belongs to.

Is it required: No, SDK fills in.

conversationType

conversationType
conversationType: ZIMConversationType

Session type.

Business scenario: Indicates the type of the session.

Is it required: If no, the SDK is filled.

readMemberCount

readMemberCount
readMemberCount: number

Detailed description: Indicates the number of people who have read the receipt.

Business scenario: When used to query receipt information, it can display how many people have read the message.

Is it required: no.

Default: 0.

This value indicates how many people have read the message, it is only applicable to the message has been read; if the message is not sent by yourself, the value is 0.

unreadMemberCount

unreadMemberCount
unreadMemberCount: number

Detailed description: Indicates the number of unread people of the receipt.

Business scenario: When used to query receipt information, it can display how many people have unread the message.

Is it required: no.

Default: 0.

This value indicates how many people have not read the message, and it is only applicable to the message that has been read; if the message is not sent by yourself, the value is 0.

isSelfOperated

isSelfOperated
isSelfOperated: boolean

In a multi-device login scenario, after device A sets the message receipt as read, other online multi-devices use it to distinguish whether the message receipt set by itself has been read.

readTime

readTime
readTime: number

Server-side timestamp when the message receipt was read.

  • Default value: 0.
  • Caution: For the sender, this value is the timestamp when all session members read the message. For the recipient, this value is the timestamp when the message receipt was set.

ZIMMessageReceiptsInfoQueriedResult

Callback interface for query receipt message read.

Details

Supported version: 2.5.0 and above.

Detailed description: Callback interface for querying receipt message information.

Business scenario: Developers can judge whether the sending is successful through [errorCode] in the callback.

Notification timing: When the developer calls the [queryMessageReceiptsInfo] interface, this callback will be triggered.

Relevant interface: through [queryMessageReceiptsInfo], whether the result of querying the receipt information is successful or not will be notified through this callback.

Properties

infos

infos

Query receipt information.

errorMessageIDs

errorMessageIDs
errorMessageIDs: string[]

Query the wrong message ID of the message receipt information.

ZIMMessageReceiptsReadSentResult

Callback interface for setting the read receipt message.

Details

Supported version: 2.5.0 and above.

Detailed description: Set the callback interface for the read receipt message.

Business scenario: Developers can judge whether the setting is successful through [errorCode] in the callback.

Notification timing: When the developer calls the [sendMessageReceiptsRead] interface, this callback will be triggered.

Relevant interface: The success or failure of the message read result set by [sendMessageReceiptsRead] will be notified through this callback.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

errorMessageIDs

errorMessageIDs
errorMessageIDs: string[]

Set the message ID corresponding to the message receipt failure.

ZIMMessageRepliedInfo

The reply message refers to the information of the source message.

Properties

state

state

the source message status.

sentTime

sentTime
sentTime: number

The send timestamp of the source message (in UTC).

senderUserID

senderUserID
senderUserID: string

The sender user ID of the source message.

messageSeq

messageSeq
messageSeq: number

The seq of the source message.

messageInfo

messageInfo
messageInfo: ZIMMessageLiteInfo

The source message lite info object.

messageID

messageID
messageID: string

The ID of the source message.

ZIMMessageRepliedListQueriedResult

The callback for querying the reply message list result.

Properties

rootRepliedInfo

rootRepliedInfo
rootRepliedInfo: ZIMMessageRootRepliedInfo

Reply information for the root message.

messageList

messageList
messageList: ZIMMessage[]

List of messages retrieved.

nextFlag

nextFlag
nextFlag: number

Query anchor, used for the next page to be passed to [ZIMMessageRepliedListQueryConfig] for querying.

ZIMMessageRepliedListQueryConfig

Configuration for querying reply message list.

Properties

nextFlag

nextFlag
nextFlag: number

The flag of paginated query. When querying for the first time, set this field to 0. If the "nextFlag" field of the [queryMessageRepliedList] callback is not 0, it means that the query has not ended yet. You need to set it here to continue querying the next page.

count

count
count: number

The number of queries per query. The upper limit is 100. Exceeding 100 will result in an error.

  • Required: Required.

ZIMMessageRevokeConfig

Details

Revoke configurations related to messages.

Properties

revokeExtendedData

revokeExtendedData
revokeExtendedData: string

revoking additional messages.

  • Required: Not required.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Configures the offline push function, If Android or iOS platform is integrated, it is strongly recommended to configure this.

  • Required: Not required.

ZIMMessageRevokedResult

Callback of the result of revoking message.

Details

After the developer revoking message, execute the callback of the result.

  • When to call: This callback is triggered when a developer invokes the [revokeMessage] interface.
  • Caution: Revoke message through [revokeMessage]. Success or failure to renew tokens will be notified through this callback.
  • Available since: 2.5.0 or above.

Properties

message

message

The revoked message.

ZIMMessageRootRepliedCountInfo

Information about the number of replies in the reply message tree.

Properties

conversationID

conversationID
conversationID: string

Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type.

messageID

messageID
messageID: string

root message id.

count

count
count: number

The number of replies for the reply message tree.

ZIMMessageRootRepliedInfo

Reply to the root message of the message tree.

Properties

state

state

Root message status.

sentTime

sentTime
sentTime: number

The send timestamp of the root message.

senderUserID

senderUserID
senderUserID: string

The sender user ID of the root message.

repliedCount

repliedCount
repliedCount: number

The number of replies for the reply message tree.

message

message
message: ZIMMessage

The root message object.

ZIMMessageSearchConfig

Message search configuration.

Details

Message search configuration.

Properties

nextMessage

nextMessage
nextMessage: ZIMMessage

Paging fetch flag, which means fetching messages before or after nextMessage, with "before" or "after" determined by the order value. On the first search, nextMessage is null. On subsequent searches, nextMessage needs to pass in the last message in the message list queried last time.

count

count
count: number

count It is recommended to keep the number of items less than 20 to reduce performance overhead.

  • Required: Required.

order

order

When the "order" is "DESCENDING" during message search, it means querying messages with sending time earlier than nextMessage. If it's the first message query (i.e. nextMessage is null), then query from the last message stored locally forward. When "order" is "ASCENDING", it means querying messages with sending time later than nextMessage. If it's the first message query (i.e. nextMessage is null), then query from the first message stored locally backward. The default is "DESCENDING".

keywords

keywords
keywords: string[]

Search keywords, up to 5 keywords are supported, otherwise an error will be reported. For example: passing in "1" and "2" will make the search results only show messages that contain both keywords "1" and "2".

messageTypes

messageTypes
messageTypes: ZIMMessageType[]

Message types, can be used to specify message types. Support passing in multiple types.

subMessageTypes

subMessageTypes
subMessageTypes: number[]

The subtypes of custom messages have a value range of [0,200]. Developers can use this range to search for specific custom types.

senderUserIDs

senderUserIDs
senderUserIDs: string[]

The user ID of the message sender, supporting up to 5 IDs. For example, if "zego2023" is passed in, the search results will only display all the messages sent by the user "zego2023" in that conversation.

startTime

startTime
startTime: number

The starting point of the search, in milliseconds, with a default value of 0. The format is UTC timestamp.

endTime

endTime
endTime: number

The ending point of the search, which must be greater than the startTime, in milliseconds. The default value is 0 and the format is UTC timestamp.

ZIMMessageSendConfig

Details

Configurations related to sending messages.

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Configures the offline push function, If Android or iOS platform is integrated, it is strongly recommended to configure this.

  • Required: Not mandatory.

priority

priority
  • Required: Must mandatory.

hasReceipt

hasReceipt
hasReceipt: boolean
  • Required: not required.
  • Default value: false.

isNotifyMentionedUsers

isNotifyMentionedUsers
isNotifyMentionedUsers: boolean
  • Required: not required.
  • Default value: true.

isRetrySend

isRetrySend
isRetrySend: boolean

Whether to resend the failed message.

  • Required: No.

disableUnreadMessageCount

disableUnreadMessageCount
disableUnreadMessageCount: boolean
  • Required: No.
  • Default value: false.

ZIMMessageSendNotification

The notification callback when the message is sent, you can get the relevant information before the message object is sent through this notification

Details

Detailed description: Through this notification, developers can obtain relevant information before the message object is sent, such as localMessageID, etc.

Business scenario: When developers need to record and cache relevant information before sending a message, they can obtain it by listening to the notification.

If no monitoring is required, it can be passed null.

Methods

onMediaUploadingProgress

onMediaUploadingProgress
onMediaUploadingProgress(message: ZIMMediaMessage, currentFileSize: number, totalFileSize: number): void
Progress callback for sending media messages.

Parameters

NameTypeDescription
messageZIMMediaMessageThe message object for the current file upload.
currentFileSizenumberThe current progress, that is, the real-time size of the current file upload.
totalFileSizenumberTotal progress, which is the total size of the current file.

Details

Supported versions: 2.1.0 and above.

Detail description: The progress callback for sending media messages.

Business scenario: The developer can obtain the sending progress of the media message through this callback.

Notification timing: When the developer calls the [sendMediaMessage] interface, the callback will be triggered, and will be triggered multiple times during the sending process.

Related interface: Through [sendMediaMessage], the sending progress will be notified through this callback.

onMessageAttached

onMessageAttached
onMessageAttached(message: ZIMMessage): void
The incoming message object is given a localMessgeID and returned.

Parameters

NameTypeDescription
messageZIMMessageThe currently sent message object.

Details

Supported version: 2.4.0 and above.

The incoming message object is given a localMessgeID and returned.

Service scenario: Before a message is successfully sent, it can correspond to its localMessageID to implement loading before sending.

Notification time: Triggered after the message is sent and before the message is successfully sent.

onMultipleMediaUploadingProgress

onMultipleMediaUploadingProgress
onMultipleMediaUploadingProgress(message: ZIMMultipleMessage, currentFileSize: number, totalFileSize: number, messageInfoIndex: number, currentIndexFileSize: number, totalIndexFileSize: number): void
Progress callback for sending multiple messages.

Parameters

NameTypeDescription
messageZIMMultipleMessageThe currently sent message object.
currentFileSizenumberThe current total uploaded size.
totalFileSizenumberThe total size of files to be uploaded.
messageInfoIndexnumberThe index of the array where the currently uploaded file is located.
currentIndexFileSizenumberThe uploaded size of the currently uploaded file.
totalIndexFileSizenumberThe total size of the files currently being uploaded.

Details

Supported versions: 2.19.0 and above.

Detail description: The progress callback for sending multiple messages.

Business scenario: Developers can use this callback to obtain the upload progress of the media files in the multiple message.

Notification timing: When the developer calls the [sendMessage] interface, the callback will be triggered, and will be triggered multiple times during the sending process.

Related interface: Through [sendMessage], the sending progress will be notified through this callback.

ZIMMessageSentResult

Callback of the result of sending the message.

  • Related APIs: This callback is triggered when the developer calls the [sendPeerMessage] and [sendRoomMessage] interfaces.
  • Available since: 1.1.0 or above.

Properties

message

message
message: ZIMMessage

The sent message object, from which parameters such as messageID can be obtained.

ZIMMessageSentStatusChangeInfo

Notice of Room Message Status Change.

Details

Notice of Room Message Status Change.

Properties

message

message
message: ZIMMessage

ZIMMessage.

status

status

message sent status.

reason

reason
reason: string

This field stores the reason why a message was rejected by ZEGOCLOUD In-app Chat due to interception by the server-side callback on message not sent yer. If you have enabled the ZEGOCLOUD In-app Chat content moderation service and require this field to capture failure reasons caused by failed content moderation, contact ZEGOCLOUD Technical Support for configuration.

ZIMMessagesGlobalSearchedResult

Return of local message search results.

Details

Detailed description: Return of search results for local messages.

  • Use cases: After performing a local message search operation, the success or failure can be determined through this callback.

Related API: [searchLocalMessages], search for local messages.

Properties

messageList

messageList
messageList: ZIMMessage[]

The message list of the searched result.

nextMessage

nextMessage
nextMessage: ZIMMessage

Pagination retrieval flag, message anchor for searching the next page.

ZIMMessagesSearchedResult

Return of local message search results.

Details

Detailed description: Return of search results for local messages.

  • Use cases: After performing a local message search operation, the success or failure can be determined through this callback.

Related API: [searchLocalMessages], search for local messages.

Properties

messageList

messageList
messageList: ZIMMessage[]

The message list of the searched result.

conversationID

conversationID
conversationID: string

ConversationID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation Type.

nextMessage

nextMessage
nextMessage: ZIMMessage

Pagination retrieval flag, message anchor for searching the next page.

ZIMMultipleMessage

Multiple message object.

Details

Detailed description: Identifies a multiple message.

Only supports the multiple of text, image, file, audio, video, and custom messages, and the number of array does not exceed 20.

Properties

messageInfoList

messageInfoList
messageInfoList: ZIMMessageLiteInfo[]

It can contain text, image, file, audio, video, and custom messages. The array length does not exceed 20.

  • Use cases: It can be used to send text and image multiple messages.
  • Recommended value: The total number of items does not exceed 20, the maximum number of image is 10, and the maximum number of file, audio, video and custom message is 1 each. The size and format restrictions of image, file, audio, and video are the same as those of the corresponding rich media messages.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMMultipleMessageLiteInfo

Multiple message lite info object.

Details

Identifies the basic parameters of a multiple message.

Properties

messageInfoList

messageInfoList
messageInfoList: ZIMMessageLiteInfo[]

Detail description: A list of elements that compose the message.

type

type

Identifies the type of this message.

ZIMOfflinePushPrivateMessageTemplate

Offline push private message template.

Details

According to [OPUSH DMS template check ability to access instructions] (https://open.oppomobile.com/documentation/page/info?id=12391), OPPO in new message classification on the basis of the new push DMS templates, After you have configured the private message template in the OPPO console, if you need to apply the corresponding template during push notifications, you can assign a value to the privateMessageTemplate in ZIMPushConfig.

Properties

templateID

templateID
templateID: string

The ID of the private message template pushed by OPPO must be carried when sending the corresponding private message template. If the category of OPPO in the resourceID is set to be classified as Content and Marketing, this field is invalid. Details please see [OPUSH DMS template check ability to access instructions] (https://open.oppomobile.com/documentation/page/info?id=12391

titleParameters

titleParameters
titleParameters: string

json string, OPPO push title template filling parameters. For example, the private message template ID title template is: Welcome to {city}\{city\} , {city}\{city\} Welcome you. The content of this parameter is :" {"city":" Beijing}".

contentParameters

contentParameters
contentParameters: string

json string, OPPO push content template filling parameter. Example: The content template corresponding to the private message template ID is: Welcome {userName}\{userName\} to {city}\{city\} . The content of this parameter is :" {"userName":" Tom ", "city":" Shenzhen City "}.

ZIMPinnedMessageListQueriedResult

The developer uses this callback to get a list of queried pinned messages, which can be used to display pinned messages.

  • Related APIs: The [queryPinnedMessageList] interface is used to query the list of pinned messages. The queried message list is notified through this callback.

Properties

messageList

messageList
messageList: ZIMMessage[]

The pinned message list of the query result.

ZIMPushConfig

Description

push configuration.

Details

Details: Configuration before sending offline push.

Properties

title

title
title: string

Used to set the push title.

  • Required: Not required.

content

content
content: string

Used to set offline push content.

  • Required: Not required.

payload

payload
payload: string

This parameter is used to set the pass-through field of offline push.

  • Required: Not required.

resourcesID

resourcesID
resourcesID: string

A string defined by you, no more than 32 characters in length, used to map advanced configurations for offline push from multiple manufacturers, abstracting the push configurations of various manufacturers into a single push strategy that you define yourself. For detailed introduction and configuration steps, please refer to ResourcesID introduction.

  • Required: Not required.

enableBadge

enableBadge
enableBadge: boolean

Push whether to carry corner information switch.

badgeIncrement

badgeIncrement
badgeIncrement: number

The incremental index number carried by the push.

voIPConfig

voIPConfig
voIPConfig: ZIMVoIPConfig

If you use Flutter, RN ZPNs, offline push receiving device has iOS and uses VoIP push type, you can customize some VoIP options with this parameter.

privateMessageTemplate

privateMessageTemplate
privateMessageTemplate: ZIMOfflinePushPrivateMessageTemplate

If you use OPPO push notifications, you can apply the OPPO Private message template through this structure; otherwise, you can ignore it and it will be left blank by default.

ZIMRevokeMessage

Base class for revoke message objects.

Details

Detail description: Identifies a revoke message.

This base class is the basis of all revoke messages and contains the properties required by revoke messages.

Properties

revokeType

revokeType
revokeType: ZIMRevokeType

Detail description: revoke type.

revokeStatus

revokeStatus
revokeStatus: ZIMMessageRevokeStatus

Detail description: revoke status.

revokeTimestamp

revokeTimestamp
revokeTimestamp: number

Detail description: revoke timestamp.

operatedUserID

operatedUserID
operatedUserID: string

Detail description: operated user ID.

revokeExtendedData

revokeExtendedData
revokeExtendedData: string

Detail description: revoke extended data.

originalMessageType

originalMessageType
originalMessageType: ZIMMessageType

original message type

originalTextMessageContent

originalTextMessageContent
originalTextMessageContent: string

original text message content

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMRevokeMessageLiteInfo

Base class for revoke message lite info objects.

Properties

type

type

Identifies the type of this message.

ZIMRoomAdvancedConfig

Room advanced config.

Details

Room‘s advanced config.

Properties

roomAttributes

roomAttributes
roomAttributes: Record<string, string>

Room attributes of a room.

roomDestroyDelayTime

roomDestroyDelayTime
roomDestroyDelayTime: number

Room destruction time delayed, the unit is seconds. The maximum room destroy delay time is 3 hours.

  • Use cases: If the number of rooms is 0, set the room time to ensure that the room exists during this period.
  • Required: Not mandatory.

ZIMRoomAttributesBatchOperatedResult

The return of the result of the room attribute combination operation.

Properties

roomID

roomID
roomID: string

Room ID.

ZIMRoomAttributesBatchOperationConfig

The behavior attribute set by the room attribute.

Details

The behavior attribute set by the room attribute.

Properties

isDeleteAfterOwnerLeft

isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: boolean

Room attributes are automatically deleted after the owner leaves the room.

  • Required: Not required.

isForce

isForce
isForce: boolean

Whether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.

  • Required: Not required.

isUpdateOwner

isUpdateOwner
isUpdateOwner: boolean

Whether to update the owner of the room attribute involved.

  • Required: Not required.

ZIMRoomAttributesDeleteConfig

The behavior attribute set by the room attribute.

Details

The behavior attribute set by the room attribute.

Properties

isForce

isForce
isForce: boolean

Whether the operation is mandatory, that is, the property of the room whose owner is another user can be deleted.

  • Required: Not required.

ZIMRoomAttributesOperatedResult

The return of the operation result of the room attribute.

Properties

errorKeys

errorKeys
errorKeys: string[]

Keys for failed operation.

roomID

roomID
roomID: string

Room ID.

ZIMRoomAttributesQueriedResult

Return of room attribute query results.

Properties

roomAttributes

roomAttributes
roomAttributes: Record<string, string>

Room attributes in the room.

roomID

roomID
roomID: string

Room ID.

ZIMRoomAttributesSetConfig

The behavior attribute set by the room attribute.

Details

The behavior attribute set by the room attribute.

Properties

isDeleteAfterOwnerLeft

isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: boolean

Room attributes are automatically deleted after the owner leaves the room.

  • Required: Not required.

isForce

isForce
isForce: boolean

Whether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.

  • Required: Not required.

isUpdateOwner

isUpdateOwner
isUpdateOwner: boolean

Whether to update the owner of the room attribute involved.

  • Required: Not required.

ZIMRoomAttributesUpdateInfo

Notice of Room Attribute Change.

Details

Notice of Room Attribute Change.

Properties

action

action

Behavioral information of room attribute change notification.

roomAttributes

roomAttributes
roomAttributes: Record<string, string>

Room attributes.

ZIMRoomCreatedResult

Create the result object of the room.

Details

Identify the result of creating a room.

Properties

roomInfo

roomInfo
roomInfo: ZIMRoomFullInfo

Details of the room created.

ZIMRoomEnteredResult

Enter the result object of the room.

Details

Identify the result of enter a room.

Properties

roomInfo

roomInfo
roomInfo: ZIMRoomFullInfo

Details of the room entered.

ZIMRoomFullInfo

The room details object.

Details

Identifies the basic parameters of a message.

  • Caution: Identifies the detailed information of a room.

Properties

baseInfo

baseInfo
baseInfo: ZIMRoomInfo

The base object of the room.

ZIMRoomInfo

Room information object.

Details

Identifies a unique room.

Properties

roomID

roomID
roomID: string

Room ID. a string with a maximum length of 128 bytes. It is customized by the developer and supports only digits, English characters, , and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', ''.

roomName

roomName
roomName: string

Room name, It is customized by the developer .a string with a maximum length of 64 bytes or less

ZIMRoomJoinedResult

Joined the result object of the room.

Details

Identify the result of join a room.

Properties

roomInfo

roomInfo
roomInfo: ZIMRoomFullInfo

Details of the room joined.

ZIMRoomLeftResult

Callback of the result of leaving the room.

Properties

roomID

roomID
roomID: string

Room ID.

ZIMRoomMemberAttributesInfo

Room user attribute information.

Details

Detail description: A class describing room user attributes, including UserID and its corresponding attributes.

Properties

userID

userID
userID: string

Detail description: User ID.

attributes

attributes
attributes: Record<string, string>

Detailed description: room user attributes.

ZIMRoomMemberAttributesListQueriedResult

Returns the query result of the user attribute list in the room.

Details

Supported version: 2.4.0.

Detail description: Returns the result of paging query of all user attribute lists in the room.

Business scenario: After querying room user attributes, the success or failure and query results can be known through this callback.

Notification timing: The result will be returned after the room user attribute query is completed.

Related interface: [queryRoomMemberAttributesList], query room user attributes.

Properties

roomID

roomID
roomID: string

Room ID.

infos

infos

List of room user attributes.

nextFlag

nextFlag
nextFlag: string

The anchor of the next paging query. If it is empty, it means that the query has been completed.

ZIMRoomMemberAttributesOperatedInfo

Room user attribute operation information.

Details

Detail description: room user attribute operation information, including attributes of successful operation and keys of failure.

Properties

attributesInfo

attributesInfo

Detailed description: room user attribute information.

errorKeys

errorKeys
errorKeys: string[]

Detail description: The key of the room user attribute operation failure.

ZIMRoomMemberAttributesQueryConfig

Room user attribute query configuration.

Details

Detailed description: room user attribute query configuration.

Properties

nextFlag

nextFlag
nextFlag: string

Detail description: Query anchor for room user properties.

Required or not: not required, it is empty by default for the first time, which means to start the query from the beginning.

count

count
count: number
  • Required: Required.

ZIMRoomMemberAttributesSetConfig

Room user property settings configuration.

Details

Detail description: room user attribute setting configuration, including configurable whether to retain user attributes after the user leaves, etc.

Business scenarios: When setting room user attributes, developers can choose to use them according to their actual application scenarios.

Properties

isDeleteAfterOwnerLeft

isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: boolean
  • Required: not required.

Default: true.

ZIMRoomMemberAttributesUpdateInfo

Room user attribute update information.

Details

Detailed description: Room user attribute update information.

Properties

attributesInfo

attributesInfo

Detailed description: room user attributes.

ZIMRoomMemberInfo

Room user information.

Details

Detail description: A class describing room user.

Properties

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

userName

userName
userName: string

User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

The user avatar, which is custom generated by the developer, is not restricted by special characters and has a maximum length of 500 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.
  • Available since: 2.13.0 and above.

userExtendedData

userExtendedData
userExtendedData: string

Extended field information of the user.

  • Caution: This property has a value only for room users.

ZIMRoomMemberQueriedResult

Callback of the result of querying the room members list.

Details

Callback of the result of querying the room members list.

Properties

memberList

memberList
memberList: ZIMUserInfo[]

List of members in the room.

nextFlag

nextFlag
nextFlag: string

The flag of the paging query. For the first query, set this field to an empty string. If the "nextFlag" field of the callback is not an empty string, it needs to be set here to continue the query on the next page.

roomID

roomID
roomID: string

Room ID.

ZIMRoomMemberQueryConfig

Configuration for querying room member.

Details

When querying member, you need to configure this object.

Properties

nextFlag

nextFlag
nextFlag: string

The flag of the paging query. For the first query, set this field to an empty string. If the "nextFlag" field of the callback is not an empty string, it needs to be set here to continue the query on the next page.

  • Required: Not required.

count

count
count: number

How many messages are retrieved in one query.

  • Caution: To obtain messages in pages to reduce overhead, it is recommended to obtain within 100 messages at a time. If the value is 0, the SDK will query 100 room member by default.
  • Required: Required.

ZIMRoomMembersAttributesOperatedResult

The return of the operation result of the room attribute.

Details

Supported version: 2.4.0.

Detail description: Returns the result of the room user attribute operation.

Business scenario: After the custom attribute operation is performed, the success or failure can be known through this callback.

Notification timing: The result is returned after the room user attribute operation is completed.

Related interface: [setRoomMembersAttributes], add or modify room user attributes.

Properties

roomID

roomID
roomID: string

Room ID.

infos

infos

The attributes information of the room member after the operation.

errorUserList

errorUserList
errorUserList: string[]

List of UserIDs with errors.

ZIMRoomMembersAttributesQueriedResult

Returns the results of batch query of room user attributes.

Details

Supported version: 2.4.0.

Detailed description: According to the UserID list, batch query results of room user attributes are returned.

Business scenario: After querying room user attributes, the success or failure and query results can be known through this callback.

Notification timing: The result will be returned after the room user attribute query is completed.

Related interface: [queryRoomMembersAttributes], query room user attributes.

Properties

roomID

roomID
roomID: string

Room ID.

infos

infos

List of room user attributes.

ZIMRoomMembersQueriedResult

Callback for the result of querying the specified member of the room.

Details

After querying room user information, the query result is returned through this callback.

  • Use cases: The logic after querying room user information can be done in this callback.
  • When to call /Trigger: Triggered after querying room user information.
  • Available since: 2.8.0 and above.

Properties

memberList

memberList
memberList: ZIMRoomMemberInfo[]

List of members in the room.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of users whose query failed.

roomID

roomID
roomID: string

Room ID.

ZIMRoomOnlineMemberCountQueriedResult

Callback of the result of querying the online members count in the room.

Details

Callback of the result of querying the online members count in the room.

  • Related APIs: You can check the online number of people in the room through [queryRoomOnlineMemberCount].
  • Available since: 1.1.0 or above.

Properties

count

count
count: number

The number of online members of the room.

roomID

roomID
roomID: string

Room ID.

ZIMRoomOperatedInfo

Room operation information.

Details

Detailed description: Room operation information.

Properties

userID

userID
userID: string

Detail description: UserID of the operator.

ZIMRoomSwitchedResult

Callback of the result of switched rooms.

Details

Callback of the result of switched rooms.

Properties

roomInfo

roomInfo
roomInfo: ZIMRoomFullInfo

Full info of the room switched.

ZIMSelfUserInfo

Carry user information and rules of the current user.

Details

Carry user information and rules of the current user.

Properties

userRule

userRule
userRule: ZIMUserRule

Rules for the current user, setting information.

userFullInfo

userFullInfo
userFullInfo: ZIMUserFullInfo

Personal information of the current user.

ZIMSelfUserInfoQueriedResult

Callback result of querying personal user information and rules.

Properties

selfUserInfo

selfUserInfo
selfUserInfo: ZIMSelfUserInfo

Own user information, rule data interface.

ZIMSelfUserRule

User's own rule class.

Properties

offlinePushRule

offlinePushRule
offlinePushRule: ZIMUserOfflinePushRule

The user's current rule information.

ZIMSendingMessageCancelConfig

Details

(Empty Class) Configurations related to cancel sending messages.

ZIMSubscribedUserStatusListQueriedResult

QuerySubscribedUserStatusList query for the current user subscription list operation results callback.

Details

QuerySubscribedUserStatusList query for the current user subscription list operation results callback.

Properties

userStatusSubscriptionList

userStatusSubscriptionList
userStatusSubscriptionList: ZIMUserStatusSubscription[]

Subscription information for users in the subscription list.

ZIMSubscribedUserStatusQueryConfig

QuerySubscribedUserStatusList query subscription list interface configuration items.

Details

QuerySubscribedUserStatusList query subscription list interface configuration items.

Properties

userIDs

userIDs
userIDs: string[]

Pass this value if you need to check whether the specified user is in the subscription list of the current user, otherwise all users in the subscription list will be returned.

ZIMTextMessage

Normal text message object.

Details

Identifies the basic parameters of a message.

  • Caution: If the Type parameter of the base class is Text during callback, you can force the base class message object to be of this type.

Properties

message

message
message: string

The content of the text message.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMTextMessageLiteInfo

Normal text message lite info object.

Details

Identifies the basic parameters of a message lite info.

  • Caution: If the Type parameter of the base class is Text during callback, you can force the base class message lite info object to be of this type.

Properties

message

message
message: string

The content of the text message.

type

type

Identifies the type of this message.

ZIMTipsMessage

Tips message object.

Details

Identifies a tips info message.

  • Caution: If the Type parameter of the base class is Tips during callback, you can force the base class message object to be of this type.

Properties

event

event

The type of the tips message.

operatedUser

operatedUser
operatedUser: ZIMUserInfo

The initiator of the action corresponding to the tips message.

targetUserList

targetUserList
targetUserList: ZIMUserInfo[]

The target user list for the operation corresponding to the tips message.

changeInfo

changeInfo

Additional information for the operation corresponding to the tips message.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMTipsMessageChangeInfo

Tips message additional information.

Details

Tips message additional information.

Properties

type

type

Tips message additional information type.

ZIMTipsMessageGroupChangeInfo

Tips Additional information about change events related to the message group.

Details

Tips Additional information about change events related to the message group.

Properties

groupDataFlag

groupDataFlag
groupDataFlag: number

If there are multiple changes in the group name, group avatar, and group announcement, you need to know which ones have changed based on the value of this field. Among them, 0b0001 is the group name, 0b0010 is the group notice, and 0b0100 is the group avatar.

groupName

groupName
groupName: string

If the group name is changed, the changed value will be displayed here.

groupNotice

groupNotice
groupNotice: string

If the group notice is changed, the changed value will be displayed here.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

If the group avatar url is changed, the changed value will be displayed here.

groupMutedInfo

groupMutedInfo
groupMutedInfo: ZIMGroupMuteInfo

If the group mute info is changed, the changed value will be displayed here.

type

type

Tips message additional information type.

ZIMTipsMessageGroupMemberChangeInfo

Tips Additional information about change events related to the message group member.

Details

Tips Additional information about change events related to the message group member.

Properties

memberRole

memberRole
memberRole: number

If a group member's role changes, the changed role will be displayed here.

muteExpiredTime

muteExpiredTime
muteExpiredTime: number

If the group member's muting expired time changes, the new muting expired time will be displayed here.

groupNewOwner

groupNewOwner
groupNewOwner: ZIMGroupMemberSimpleInfo

Displays information about the new group owner when the group owner leaves the group or is kicked from the group by the server.

  • Use cases: Used for UI display when the group owner leaves the group or is kicked from the group by the server.

type

type

Tips message additional information type.

ZIMTipsMessagePinStatusChangeInfo

Tips Additional information about change events related to the message pinned or unpined.

Details

Tips Additional information about change events related to the message pinned or unpined.

Properties

isPinned

isPinned
isPinned: boolean

Describes whether the current operation is a pin operation or an unpin operation.

type

type

Tips message additional information type.

ZIMTokenRenewedResult

Callback of the result of renewing the token.

Details

After the developer updates the Token, execute the callback of the result.

  • When to call: This callback is triggered when a developer invokes the [renewToken] interface.
  • Caution: Renew tokens through [renewToken]. Success or failure to renew tokens will be notified through this callback.
  • Available since: 2.0.0 or above.

Properties

token

token
token: string

The renewed token.

ZIMUserAvatarUrlUpdatedResult

Callback to update userAvatarUrl.

Properties

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

updated user avatar URL.

ZIMUserCustomStatusUpdatedResult

The asynchronous results for custom status update.

Details

The asynchronous results for custom status update.

Properties

customStatus

customStatus
customStatus: string

custom status.

ZIMUserExtendedDataUpdatedResult

Update the userExtendedData callback.

Details

Supported version: 2.2.0 and above.

Detailed description: Callback after developer queries user information.

Notification timing: This callback is triggered when a developer invokes the [queryUsersInfo] interface.

Related interface: Run the queryUsersInfo command to query information.

Properties

extendedData

extendedData
extendedData: string

updated user extended data.

ZIMUserFullInfo

User full information object.

Details

Identifies a unique user.

  • Caution: that the userID must be unique under the same appID, otherwise mutual kicks out will occur. It is strongly recommended that userID corresponds to the user ID of the business APP, that is, a userID and a real user are fixed and unique, and should not be passed to the SDK in a random userID. Because the unique and fixed userID allows ZEGO technicians to quickly locate online problems.

Properties

baseInfo

baseInfo
baseInfo: ZIMUserInfo

User basic information.

userAvatarUrl

userAvatarUrl
deprecated
userAvatarUrl: string
  • Required: not required.

Use restrictions: The value is a maximum of 500 bytes and contains no special characters.

Deprecated
Deprecated in version 2.13.0. To obtain the URL of a user's avatar, please refer to userAvatarUrl from the baseInfo.

extendedData

extendedData
extendedData: string
  • Required: not required.

Privacy Protection Statement: Do not pass in sensitive information involving personal privacy, including but not limited to mobile phone numbers, ID numbers, passport numbers, real names, etc.

ZIMUserInfo

User information object.

Details

Identifies a unique user.

  • Caution: that the userID must be unique under the same appID, otherwise mutual kicks out will occur. It is strongly recommended that userID corresponds to the user ID of the business APP, that is, a userID and a real user are fixed and unique, and should not be passed to the SDK in a random userID. Because the unique and fixed userID allows ZEGO technicians to quickly locate online problems.

Properties

userID

userID
userID: string

User ID, a string with a maximum length of 32 bytes or less. It is customized by the developer. Only support numbers, English characters and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'.

userName

userName
userName: string

User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

The user avatar, which is custom generated by the developer, is not restricted by special characters and has a maximum length of 500 bytes.

  • Required: Not required.
  • Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.
  • Available since: 2.13.0 and above.

userExtendedData

userExtendedData
userExtendedData: string

Extended field information of the user.

  • Caution: This property has a value only for room users.

ZIMUserNameUpdatedResult

Update the userName callback.

Details

Supported version: 2.2.0 and above.

Detailed description: Callback after developer queries user information.

Notification timing: This callback is triggered when a developer invokes the [queryUsersInfo] interface.

Related interface: Run the queryUsersInfo command to query information.

Properties

userName

userName
userName: string

updated user name.

ZIMUserOfflinePushRule

Data class of the user's offline push rule.

Details

Data class of the user's offline push rule.

Properties

onlinePlatforms

onlinePlatforms
onlinePlatforms: number[]

With the data in the class member variables notToReceiveOfflinePushPlatforms collocation is used. OnlinePlatforms specified platform, online notToReceiveOfflinePushPlatforms specified platform will not receive offline push.

  • Value range: Please enter the enumeration value corresponding to the platform in the ZIMPlatformType enumeration.

notToReceiveOfflinePushPlatforms

notToReceiveOfflinePushPlatforms
notToReceiveOfflinePushPlatforms: number[]

With the data in the class member variables onlinePlatforms collocation is used. OnlinePlatforms specified platform, online notToReceiveOfflinePushPlatforms specified platform will not receive offline push.

  • Value range: Please enter the enumeration value corresponding to the platform in the ZIMPlatformType enumeration.

ZIMUserOfflinePushRuleUpdatedResult

Update the result callback of the user offline push rule.

Properties

offlinePushRule

offlinePushRule
offlinePushRule: ZIMUserOfflinePushRule

Updated offline push rules.

ZIMUserStatus

User status data

Details

Contains data about the user's online status.

Properties

userID

userID
userID: string

A unique identifier for a single user.

onlineStatus

onlineStatus
onlineStatus: ZIMUserOnlineStatus

Enumeration that represents the current online status of the user.

onlinePlatforms

onlinePlatforms
onlinePlatforms: List\<Number>

The list of online platforms of the current user can be used to display the online platforms of the user, such as iPhone online and PC online. Please refer to ZIMPlatform for the meanings of the numbers.

lastUpdateTime

lastUpdateTime
lastUpdateTime: number

Timestamp when user onlineStatus or customStatus was last changed, whichever is the greater.

lastOnlineStatusUpdateTime

lastOnlineStatusUpdateTime
lastOnlineStatusUpdateTime: number

The timestamp of the last change of the user onlineStatus, which can be used to show that the user was offline/logged in before xxx minutes.

lastCustomStatusUpdateTime

lastCustomStatusUpdateTime
lastCustomStatusUpdateTime: number

The timestamp when User customStatus was last changed, which can be used to show when the custom status was last changed.

customStatus

customStatus
customStatus: string

User-defined status. The default maximum value is 64 bytes. The default expiration time is 1 day. At login, if the field is an empty string (which is the default), the current user's custom state is not modified.

ZIMUserStatusSubscribeConfig

subscribeUsersStatus Configuration items of the online status interface for subscribing users in batches.

Details

subscribeUsersStatus Configuration items of the online status interface for subscribing users in batches.

Properties

subscriptionDuration

subscriptionDuration
subscriptionDuration: number

Used to set the duration of this subscription.

  • Use cases: This field is required.
  • Value range: :1 to 43200 (30 days), and the unit is minute.
  • Caution: After the subscription is expired, the subscribed user will be deleted from the subscription list, and the status changes of the user will not be synchronized to the subscriber.

ZIMUserStatusSubscription

User status subscription information. Contains the user's online status, a list of online platforms, subscription expiration time stamps, and more.

Details

User status subscription information. Contains the user's online status, a list of online platforms, subscription expiration time stamps, and more.

  • Available since: 2.18.0

Properties

userStatus

userStatus
userStatus: ZIMUserStatus

The online status of the user.

subscribeExpiredTime

subscribeExpiredTime
subscribeExpiredTime: number

The timestamp when the user's subscription expired.

ZIMUsersInfoQueriedResult

Query the userInfo callback.

Details

Supported version: 2.0.0 and above.

Detailed description: Callback after developer queries user information.

Notification timing: This callback is triggered when a developer invokes the [queryUsersInfo] interface.

Related interface: Run the queryUsersInfo command to query information.

Properties

userList

userList
userList: ZIMUserFullInfo[]

List of the userInfo queried.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

Failed to query the userInfo list.

ZIMUsersInfoQueryConfig

User information query configuration.

Details

Detailed description: User information query configuration, you can choose to query from the local or from the server. Query the unlimited frequency constraints from the local, and query the limited frequency constraints from the server. You can only query the detailed configuration of 10 users within 10 s.

Properties

isQueryFromServer

isQueryFromServer
isQueryFromServer: boolean
  • Required: not required.

Default: false.

ZIMUsersStatusQueriedResult

Result callback of the queryUsersStatus interface for batch querying user status.

Details

Result callback of the queryUsersStatus interface for batch querying user status.

Properties

userStatusList

userStatusList
userStatusList: ZIMUserStatus[]

Indicates the user status of the user to be queried.

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

Query the list of failed users.

ZIMUsersStatusSubscribedResult

The result of a callback to the user status of other users in a batch subscription.

Details

The result of a callback to the user status of other users in a batch subscription.

Properties

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

List of users who failed to subscribe.

ZIMUsersStatusUnsubscribedResult

Result callback for batch unsubscribing subscribed users.

Details

Result callback for batch unsubscribing subscribed users.

Properties

errorUserList

errorUserList
errorUserList: ZIMErrorUserInfo[]

Cancels the list of failed users.

ZIMVideoMessage

Video message object.

Properties

videoDuration

videoDuration
videoDuration: number
  • Required: Required by the sender, if not filled, the video message will fail to be sent when sending local video messages.

videoFirstFrameLocalPath

videoFirstFrameLocalPath
videoFirstFrameLocalPath: string

Detailed description: The video first frame local path of the video file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

videoFirstFrameDownloadUrl

videoFirstFrameDownloadUrl
videoFirstFrameDownloadUrl: string

Detail description: Video first frame external download URL of the video file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

videoFirstFrameWidth

videoFirstFrameWidth
videoFirstFrameWidth: number

Detailed description: The width of the first frame of the video.

Business scenario: When the user needs to draw a picture UI, the parameter used to determine the width of the first frame of the video, the unit is pixel.

videoFirstFrameHeight

videoFirstFrameHeight
videoFirstFrameHeight: number

Detailed description: The height of the first frame of the video.

Business scenario: When the user needs to draw a picture UI, the parameter used to determine the height of the first frame of the video, the unit is pixel.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

messageID

messageID
messageID: string

The unique ID that identifies this message.

  • Use cases: Can be used to index other messages.
  • Caution: When the developer actively creates a message, there is no need to modify this parameter. This parameter only has a value during callback.

timestamp

timestamp
timestamp: number

Identifies the sending time of a message

  • Use cases: Used to present the sending time of a message, and can be used for message sorting.
  • Caution: This is a standard UNIX timestamp, in milliseconds.

senderUserID

senderUserID
senderUserID: string

Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

Conversation ID. Ids of the same conversation type are unique.

direction

direction

Used to describe whether a message is sent or received.

sentStatus

sentStatus

Describes the sending status of a message.

conversationType

conversationType
conversationType: ZIMConversationType

The type of conversation to which the message belongs.

conversationSeq

conversationSeq
conversationSeq: number

Indicates the sequence number of the message in the conversation.

orderKey

orderKey
orderKey: number

The larger the orderKey, the newer the message, and can be used for ordering messages.

localMessageID

localMessageID
localMessageID: string

SDK locally generated MessageID, developers do not need to pay attention to.

isUserInserted

isUserInserted
isUserInserted: boolean

Detail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].

Default: false.

receiptStatus

receiptStatus
receiptStatus: ZIMMessageReceiptStatus

Describe the receipt status of the message

Business scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

message extension field

  • Use cases: You can add extended fields to the message and send it to the peer
  • Required: no
  • Caution: the length is 1k, you can contact technical support for configuration
  • Available since: 2.6.0 or higher

localExtendedData

localExtendedData
localExtendedData: string

The expandable message field visible only on this end can store additional information locally, Through [updateMessageLocalExtendedData] change and currently has a length limit of 128K. If you have special requirements, please contact ZEGO technical support for configuration.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Whether the message is pushed by all employees.

  • Required: Internal assignment.

isMentionAll

isMentionAll
isMentionAll: boolean

Whether to mention everyone. It can be presented as "@Everyone".

  • Use cases: For example, it can be used in groups or rooms.
  • Required: No.
  • Default value: false.
  • Recommended value: Set to true if you need to mention everyone.
  • Caution: This value does not add the "@Everyone" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

mentionedUserIDs

mentionedUserIDs
mentionedUserIDs: string[]

Whether to mention everyone. It can be presented as "@User".

  • Use cases: For example, it can be used in sending messages.
  • Required: No.
  • Caution: This value does not add the "@User" to the message text. Developers need to implement it themselves
  • Available since: 2.14.0 or above

messageSeq

messageSeq
messageSeq: number

Indicates the sequence number of the message in the conversation.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

The number of reply messages corresponding to the root message of the reply message tree.

repliedInfo

repliedInfo
repliedInfo: ZIMMessageRepliedInfo

Information about the source message referenced by the reply message.

editorUserID

editorUserID
editorUserID: string

The latest editor's userID for this message.

editedTime

editedTime
editedTime: number

The latest editing timestamp for this message.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Identify if this message is group targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

The last user who pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

pinnedTime

pinnedTime
pinnedTime: number

The last timestamp when pinned this message.

  • Use cases: This parameter is only assigned in [queryPinnedMessageList] or [onMessagePinStatusChanged].

ZIMVideoMessageLiteInfo

Video message lite info object.

Details

Identifies a video message.

Usage restrictions: Only supports video files with video encoding formats of H264 and H265. After the message is sent successfully, the width and height information of the first frame of the video can be obtained.

Properties

videoDuration

videoDuration
videoDuration: number
  • Required: Required by the sender, if not filled, the video message will fail to be sent when sending local video messages.

videoFirstFrameLocalPath

videoFirstFrameLocalPath
videoFirstFrameLocalPath: string

Detailed description: The video first frame local path of the video file.

Required or not: The sender does not need to fill in it. After calling [downloadMediaFile] to download, the SDK will generate this value.

videoFirstFrameDownloadUrl

videoFirstFrameDownloadUrl
videoFirstFrameDownloadUrl: string

Detail description: Video first frame external download URL of the video file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users.

Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

videoFirstFrameWidth

videoFirstFrameWidth
videoFirstFrameWidth: number

Detailed description: The width of the first frame of the video.

Business scenario: When the user needs to draw a picture UI, the parameter used to determine the width of the first frame of the video, the unit is pixel.

videoFirstFrameHeight

videoFirstFrameHeight
videoFirstFrameHeight: number

Detailed description: The height of the first frame of the video.

Business scenario: When the user needs to draw a picture UI, the parameter used to determine the height of the first frame of the video, the unit is pixel.

fileLocalPath

fileLocalPath
fileLocalPath: string
  • Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.

Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileName

fileName
fileName: string

Detail description: The filename of the media file.

Required or not: If you are sending an external URL, you need to fill in this value and include the file extension. If a local file is sent, the value is optional.

fileSize

fileSize
fileSize: number

Detail description: The size of the media file.

Required or not: The sender does not need to fill in, this value is generated by the SDK.

type

type

Identifies the type of this message.

ZIMVoIPConfig

Provides information about the iOS VoIP offline push.

Details

Provides information about the iOS VoIP offline push.

Properties

iOSVoIPHandleType

iOSVoIPHandleType
iOSVoIPHandleType: ZIMCXHandleType

The type of contact information for the VoIP caller, by default, is generic.

iOSVoIPHandleValue

iOSVoIPHandleValue
iOSVoIPHandleValue: string

The contact information of the VoIP caller. It is related to iOSVoIPHandleType. When iOSVoIPHandleType is PhoneNumber, the Value is a sequence of digits; when iOSVoIPHandleType is EmailAddress, the Value is an email address; when the contact information is of other types, the Value typically follows some domain-specific format, such as a username, numeric ID, or URL.

iOSVoIPHasVideo

iOSVoIPHasVideo
iOSVoIPHasVideo: boolean

Video call or not. The default value is audio

ZPNsConfig

ZPNs push configuration class.

Details

ZPNs push configuration class.

  • Use cases: Add the required configuration items pushed by each vendor and a Boolean value for whether to enable them.

Properties

enableHWPush

enableHWPush
enableHWPush: boolean

Whether to enable Huawei Boolean push.

enableMiPush

enableMiPush
enableMiPush: boolean

Whether to enable the Boolean value pushed by Xiaomi.

enableVivoPush

enableVivoPush
enableVivoPush: boolean

Whether to enable the Boolean value pushed by vivo.

miAppID

miAppID
miAppID: string

Xiaomi pushes the required AppID.

miAppKey

miAppKey
miAppKey: string

Xiaomi pushes the required AppKey.

oppoAppID

oppoAppID
oppoAppID: string

oppo pushes the required AppID.

oppoAppSecret

oppoAppSecret
oppoAppSecret: string

Oppo pushes the required AppSecret.

oppoAppKey

oppoAppKey
oppoAppKey: string

oppo pushes the required AppKey.

vivoAppID

vivoAppID
vivoAppID: string

Vivo pushes the desired AppID.

vivoAppKey

vivoAppKey
vivoAppKey: string

vivo pushes the required AppKey.

hwAppID

hwAppID
hwAppID: string

Huawei pushes the required AppID.

enableFCMPush

enableFCMPush
enableFCMPush: boolean

whether to enable Google Push Boolean

enableOppoPush

enableOppoPush
enableOppoPush: boolean

Whether to enable the Boolean value pushed by oppo.

enableHwBadge

enableHwBadge
enableHwBadge: boolean

Set this parameter to true when the device is a Huawei device and the receiver needs to enable the corner marking function.

  • Use cases: Please fill in before the registerPush call and pass ZPNs through the setPushConfig interface.
  • Required: This is not required.
  • Default value: The default is false.

apptype

apptype
private apptype: number

Used to specify the number of offline push configurations for the current project corresponding to the ZEGO console, default to the first set.

  • Use cases: If you need to use the same App ID on different bundle IDs/packages.
  • Required: No.
  • Default value: 1.
  • Recommended value: It should be consistent with the 'App type' configured in the ZEGOCLOUD Console for the offline push certificate associated with the current bundle ID/package name.

ZPNsIOSNotificationArrivedConfig

You can specify whether to display iOS push pop-ups, sounds, and corner markers when registering for offline push.

Details

You can specify whether to display iOS push pop-ups, sounds, and corner markers when registering for offline push.

Properties

isPresentBadge

isPresentBadge
isPresentBadge: boolean

Whether to modify the corner label when iOS receives push in the foreground.

isPresentSound

isPresentSound
isPresentSound: boolean

Whether there is a ring tone when iOS is pushed in the foreground.

isPresentAlert

isPresentAlert
isPresentAlert: boolean

Whether there is a notification pop-up window when iOS receives push in the foreground.

ZPNsLocalMessage

Describes the message class for adding local notifications.

Properties

title

title
title: string

Notification title.

content

content
content: string

Notification content.

payload

payload
payload: string

Notification payload.

channelID

channelID
channelID: string

Notification channel ID.

iOSSound

iOSSound
iOSSound: string

The name of the iOS platform sound file.

androidSound

androidSound
androidSound: string

The name of the Android platform sound file.

ZPNsMessage

ZPNs message class.

Details

ZPNs message class.

  • Use cases: Use the object of this data class to get the details of the push message.

Properties

title

title
title: string

Message title, or notification title if it is a notification message.

content

content
content: string

Message content: indicates the notification content of the message if the message is passed through. Indicates the body of the transparent message if the message is passed through.

  • Caution: oppo all key values add up to a maximum of 500 characters (note: each value is currently within 50 characters, later adjusted).

pushSourceType

pushSourceType
pushSourceType: ZPNsPushSourceType

Push the source.

extras

extras
extras: Record<string, any>

Each platform passes the source object, need to determine the type conversion.

ZPNsNotificationChannel

A class describing a notification channel.

Properties

channelID

channelID
channelID: string

Channel ID.

channelName

channelName
channelName: string

Channel name.

androidSound

androidSound
androidSound: string

The name of the Android platform sound file.

ZPNsRegisterConfig

ZPNs register push configuration class.

Details

ZPNs register push configuration class.

Properties

androidEnvironment

androidEnvironment
androidEnvironment: ZPNsEnvironment

Android development environment.

iOSEnvironment

iOSEnvironment
iOSEnvironment: ZPNsEnvironment

The certificate environment selected during packaging.

enableIOSVoIP

enableIOSVoIP
enableIOSVoIP: boolean

Is VoIP enabled on iOS.

iOSNotificationArrivedConfig

iOSNotificationArrivedConfig
iOSNotificationArrivedConfig: ZPNsIOSNotificationArrivedConfig

Set whether to display alert, badge, or sound when regular alert notifications arrive in the foreground.

ZPNsRegisterMessage

Describes the message class that vendors push token information.

Details

Describes the message class that vendors push token information.

  • Use cases: When onRegister is triggered, an object of this data class is returned, carrying a message class about vendor push token information.

Properties

errorCode

errorCode
errorCode: number

ZPNs Error code.

pushID

pushID
pushID: string

ZPNs Push ID generated.

Previous

Class

Next

Enum

On this page

Back to top