Interface
ZIMError
Error infomation
Details
Error infomation.
Declared in ZIMDefines.ts
Properties
code
code: ZIMErrorCodeDescription: The storage path of the log files. Refer to the official website document for the default path.
message
message: stringDescription: Error infomation description.
ZIMAppConfig
ZIM application configuration, including AppID and AppSign.
Declared in ZIMDefines.ts
Properties
appID
appID: unsigned intDescription
, please go to the ZEGO official website console to apply for it. Required: Required.ZIMLogConfig
Log configuration
Details
Configure the storage path of log files and the maximum log file size.
Declared in ZIMDefines.ts
Properties
logLevel
logLevel: 'debug' | 'info' | 'warn' | 'error' | 'report' | 'disable'ZIMUserInfo
User information object.
Details
Identifies a unique user.
Declared in ZIMDefines.ts
- Caution:Note 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: stringUser 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: stringDescription: 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: stringUser avatar URL
userExtendedData
userExtendedData: stringUser extended data. This field is currently only available in room related interfaces.
type
type: ZIMUserInfoTypeUser Type. This field is used to identify which subclass the current entity belongs to.
ZIMUserFullInfo
User full information object.
Details
Identifies a unique user.
Declared in ZIMDefines.ts
- Caution:Note 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
ZIMUserOfflinePushRule
Data class of the user's offline push rule.
Details
Data class of the user's offline push rule.
Declared in ZIMDefines.ts
Properties
onlinePlatforms
onlinePlatforms: ZIMPlatformType[]With the data in the class member variables notToReceiveOfflinePushPlatforms collocation is used. OnlinePlatforms specified platform, online notToReceiveOfflinePushPlatforms specified platform will not receive offline push.
notToReceiveOfflinePushPlatforms
notToReceiveOfflinePushPlatforms: ZIMPlatformType[]With the data in the class member variables onlinePlatforms collocation is used. OnlinePlatforms specified platform, online notToReceiveOfflinePushPlatforms specified platform will not receive offline push.
ZIMUserRule
User rule configuration.
Declared in ZIMDefines.ts
Properties
offlinePushRule
ZIMUserStatus
User status data
Details
Contains data about the user's online status.
Declared in ZIMDefines.ts
Properties
userID
userID: stringA unique identifier for a single user.
onlineStatus
onlineStatus: ZIMUserOnlineStatusEnumeration that represents the current online status of the user.
onlinePlatforms
onlinePlatforms: ZIMPlatformType[]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.
customStatus
customStatus: stringUser-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.
customStatusExpiredTime
customStatusExpiredTime: numberExpired timestamp of the custom status.
lastUpdateTime
lastUpdateTime: numberTimestamp when user onlineStatus or customStatus was last changed, whichever is the greater.
lastOnlineStatusUpdateTime
lastOnlineStatusUpdateTime: numberThe 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: numberThe timestamp when User customStatus was last changed, which can be used to show when the custom status was last changed.
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.
Declared in ZIMDefines.ts
Properties
userStatus
subscribeExpiredTime
subscribeExpiredTime: numberThe timestamp when the user's subscription expired.
ZIMSelfUserInfo
Carry user information and rules of the current user.
Details
Carry user information and rules of the current user.
Declared in ZIMDefines.ts
Properties
userFullInfo
userRule
userStatus
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.
Declared in ZIMDefines.ts
Properties
subscriptionDuration
subscriptionDuration: numberSubscription duration, in minutes.
ZIMSubscribedUserStatusQueryConfig
QuerySubscribedUserStatusList query subscription list interface configuration items.
Details
QuerySubscribedUserStatusList query subscription list interface configuration items.
Declared in ZIMDefines.ts
Properties
userIDs
userIDs: string[]List of user IDs to query.
ZIMUserCustomStatusUpdateConfig
User custom status update configuration.
Details
Update user custom status parameters.
Declared in ZIMDefines.ts
Properties
duration
duration: numberDuration of user custom status.
ZIMErrorUserInfo
Error user information class.
Details
Used to show the failed user and the reason for the failure.
Declared in ZIMDefines.ts
Properties
userID
userID: stringUser 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: unsigned intDescription Reason for the query failure.
ZIMLoginConfig
Configuration of login-related parameters.
Details
Login-related parameters.
Declared in ZIMDefines.ts
- Use cases:Used to set different parameters during login.
Properties
userName
userName: stringDescription: 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: stringDescription: Token carried during login.Use cases: Only pass this parameter in the scenario where token is used for authentication.Required: No.
isOfflineLogin
isOfflineLogin: booleanDescription: Whether it is offline login.Use cases: Set this parameter to true when performing offline login.Required: No.Default value: false.
customStatus
customStatus: stringDescription: Custom status.Use cases: Only pass this parameter when you need to customize the user status during login.Required: No.
customStatusDuration
customStatusDuration: numberDescription: Expired duration of the custom status.
ZIMLogoutConfig
Configuration of logout-related parameters.
Details
Parameters related to logout.
Declared in ZIMDefines.ts
- Use cases:Used to configure specific behaviors during logout.
Properties
isClearDB
isClearDB: booleanWhether to clear the current user’s local DB data when logging out. Default: [false].
ZIMUsersInfoQueryConfig
User information query configuration.
Details
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.
Declared in ZIMDefines.ts
Properties
isQueryFromServer
isQueryFromServer: booleanDetail description: Whether to query user details 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.Required: not required.Default: false.
ZIMOfflinePushPrivateMessageTemplate
The private message template is currently only applicable to the OPPO manufacturer.
Details
According to OPUSH DMS template check ability to access instructions, 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.
Declared in ZIMDefines.ts
Properties
templateID
templateID: stringDescription: The private message template ID is currently only applicable to OPPO manufacturers. Please fill in the template ID preset in the OPPO Open Platform console.
titleParameters
titleParameters: stringDescription: To replace the content of the preset title field in the template, a json string needs to be filled in, such as "{"user_name":" Li Hua "}".
contentParameters
contentParameters: stringDescription: To replace the content of the preset fields in the template, a json string needs to be filled in, such as "{"city":" Shenzhen "}".
ZIMVoIPConfig
Provides information about the iOS VoIP offline push.
Details
Provides information about the iOS VoIP offline push.
Declared in ZIMDefines.ts
Properties
iOSVoIPHandleType
iOSVoIPHandleType: ZIMCXHandleTypeDescription: The type of contact information for the VoIP caller, by default, is generic.
iOSVoIPHandleValue
iOSVoIPHandleValue: stringDescription: 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: booleanDescription: Video call or not. The default value is audio
ZIMPushConfig
Description: Offline push configuration.
Details
Configuration before sending offline push.
Declared in ZIMDefines.ts
Properties
title
title: stringDescription: Used to set the push title.Required: Not required.
content
content: stringDescription: Used to set offline push content.Required: Not required.
payload
payload: stringDescription: This parameter is used to set the pass-through field of offline push.Required: Not required.
resourcesID
resourcesID: stringDescription: Offline push advanced configuration for mapping console Settings, with the maximum of 32 characters and defined by yourself.Required: Not required.
threadID
threadID: stringDescription: Used to set the thread ID of offline push.Required: Not required.
enableBadge
enableBadge: booleanDescription: Push whether to carry corner information switch.
badgeIncrement
badgeIncrement: numberDescription: The incremental index number carried by the push.
voIPConfig
voIPConfig: ZIMVoIPConfigDescription: 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: ZIMOfflinePushPrivateMessageTemplateDescription: If you use OPPO Push, you can carry the push template through this field.
ZIMMessageReactionAddConfig
Add configuration for message reactions.
Details
Configuration class for adding message reactions.
Declared in ZIMDefines.ts
Properties
increaseCount
increaseCount: numberDescription: When this value is greater than 0, the same user is allowed to react multiple times with the same reaction type, and the counts from those reactions will be accumulated.
ZIMMessageReactionUserInfo
reaction user information.
Details
A class describing reaction user.
Declared in ZIMDefines.ts
Properties
userID
userID: stringDescription: user ID
ZIMMessageReaction
message reaction infos
Details
message reaction infos.
Declared in ZIMDefines.ts
Properties
reactionType
reactionType: stringDescription: Type of reaction, defined by you, with a maximum length of 32 bytes.
conversationID
conversationID: stringDescription: conversationID.
conversationType
messageID
messageID: stringDetail description: reaction message ID.
messageSeq
messageSeq: numberDetail description: message sequence.
totalCount
totalCount: unsigned intDescription: The reaction users number.
isSelfIncluded
isSelfIncluded: booleanDescription: The reaciton users if included myself.
userList
sumCount
sumCount: numberDetailed description: The sum count of reaction.
ZIMMessageReactionSimpleInfo
message reaction infos
Details
message reaction infos.
Declared in ZIMDefines.ts
Properties
reactionType
reactionType: stringDescription: Type of reaction, defined by you, with a maximum length of 32 bytes.
sumCount
sumCount: numberDetailed description: The sum count of reaction.
ZIMMessageReactionUserFullInfo
message reaction user full information.
Details
A class describing reaction user.
Declared in ZIMDefines.ts
Properties
userID
userID: stringDescription: user ID
reactions
reactions: ZIMMessageReactionSimpleInfo[]Description: A list of summary information for the current user’s reactions under this message.
ZIMMessageReactionUserChangeInfo
User operation change information for message reactions.
Details
A class that describes reaction change information.
Declared in ZIMDefines.ts
Properties
userID
userID: stringuser ID.
reactionType
reactionType: stringType of reaction, defined by you, with a maximum length of 32 bytes.
action
sumCount
sumCount: numberDescription: The sum count for the current reaction type.
ZIMMessageLiteInfo
Base class of message lite info object.
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
Properties
type
ZIMTextMessageLiteInfo
Normal text message lite info object.
Declared in ZIMDefines.ts
Properties
message
message: stringDescription: Text message content.
type
type: ZIMMessageType.TextZIMCustomMessageLiteInfo
Custom message lite information.
Declared in ZIMDefines.ts
Properties
message
message: stringDescription: Custom message content.
searchedContent
searchedContent: stringDescription: Custom message search content.
subType
subType: numberDescription: Custom message sub-type.
type
type: ZIMMessageType.CustomZIMCombineMessageLiteInfo
Base class for combine message lite info objects.
Declared in ZIMDefines.ts
Properties
title
title: stringDescription: Combine message title.
summary
summary: stringDescription: Combine message summary.
type
type: ZIMMessageType.CombineZIMRevokeMessageLiteInfo
Base class for revoke message lite info objects.
Declared in ZIMDefines.ts
Properties
type
type: ZIMMessageType.RevokeZIMMediaMessageLiteInfo
Base class for media message lite info objects.
Declared in ZIMDefines.ts
Properties
fileSize
fileSize: numberDescription: Media file size.
fileName
fileName: stringDescription: Media file name.
fileLocalPath
fileLocalPath: File | stringDescription: Media file local path.
fileDownloadUrl
fileDownloadUrl: stringDescription: Media file download address.
ZIMImageMessageLiteInfo
Image message lite information.
Declared in ZIMDefines.ts
Properties
originalImageWidth
originalImageWidth: numberDescription: Original image width.
originalImageHeight
originalImageHeight: numberDescription: Original image height.
largeImageWidth
largeImageWidth: numberDescription: Large image width.
largeImageHeight
largeImageHeight: numberDescription: Large image height.
largeImageDownloadUrl
largeImageDownloadUrl: stringDescription: Large image download address.
thumbnailWidth
thumbnailWidth: numberDescription: Thumbnail image width.
thumbnailHeight
thumbnailHeight: numberDescription: Thumbnail image height.
thumbnailDownloadUrl
thumbnailDownloadUrl: stringDescription: Thumbnail image download address.
type
type: ZIMMessageType.ImageZIMFileMessageLiteInfo
File message lite information.
Declared in ZIMDefines.ts
Properties
type
type: ZIMMessageType.FileZIMAudioMessageLiteInfo
Audio message lite information.
Declared in ZIMDefines.ts
Properties
audioDuration
audioDuration: numberDescription: Audio duration.
type
type: ZIMMessageType.AudioZIMVideoMessageLiteInfo
Video message lite information.
Declared in ZIMDefines.ts
Properties
videoDuration
videoDuration: numberDescription: Video duration.
videoFirstFrameWidth
videoFirstFrameWidth: numberDescription: Video first frame width.
videoFirstFrameHeight
videoFirstFrameHeight: numberDescription: Video first frame height.
videoFirstFrameDownloadUrl
videoFirstFrameDownloadUrl: stringDescription: Video first frame download address.
type
type: ZIMMessageType.VideoZIMMultipleMessageLiteInfo
Multiple messages lite information.
Declared in ZIMDefines.ts
Properties
messageInfoList
type
type: ZIMMessageType.MultipleZIMMessageRepliedInfo
The reply message refers to the information of the source message.
Declared in ZIMDefines.ts
Properties
state
messageInfo
senderUserID
senderUserID: stringDescription: Sender user ID of the replied message.
sentTime
sentTime: numberDescription: Sent time of the replied message.
messageID
messageID: stringDescription: ID of the replied message.
messageSeq
messageSeq: numberDescription: Sequence number of the replied message.
ZIMMessage
Base class of message object
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
- 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
messageID
messageID: stringDescription: 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.
localMessageID
localMessageID: stringDescription: SDK locally generated MessageID, developers do not need to pay attention to.
messageSeq
messageSeq: numberDescription: The sequence number of the message.
senderUserID
senderUserID: stringDescription:Displays the userID of the sender of this message.
conversationID
conversationID: stringDescription: Conversation ID. Ids of the same conversation type are unique.
conversationType
conversationType: ZIMConversationTypeDescription: The type of conversation to which the message belongs.
direction
direction: ZIMMessageDirectionDescription: Used to describe whether a message is sent or received.
sentStatus
timestamp
timestamp: unsigned long longDescription: Identifies the sending time of a messageUse 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.
orderKey
orderKey: numberDescription
larger the orderKey, the newer the message, and can be used for ordering messages.isUserInserted
isUserInserted: booleanDetail description: Describes whether the message is a message inserted by the developer through [insertMessageToLocalDB].Default: false.
receiptStatus
receiptStatus: ZIMMessageReceiptStatusDetailed Description: Describe the receipt status of the messageBusiness scenario: used to determine the status of the current message in the receipt message
extendedData
extendedData: stringDescription: message extension field Use cases: You can add extended fields to the message and send it to the peer Required: no Caution
length is 1k, you can contact technical support for configuration Available since: 2.6.0 or higherlocalExtendedData
localExtendedData: stringDescription: 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.
reactions
reactions: ZIMMessageReaction[]Description: Message statement list, which can carry data strongly related to users such as emoji expressions and voting information.
isBroadcastMessage
isBroadcastMessage: booleanDescription: Whether the message is pushed by all employees. Required: Internal assignment.
mentionedUserIDs
mentionedUserIDs: string[]Description: 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
isMentionAll
isMentionAll: booleanDescription: 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
repliedInfo
rootRepliedCount
rootRepliedCount: numberDescription: Root replied count.
isServerMessage
isServerMessage: booleanWhether the message was sent by the server.
editorUserID
editorUserID: stringDescription: The userID of the message editor.
editedTime
editedTime: numberDescription: The time of message editing.
isGroupTargetedMessage
isGroupTargetedMessage: booleanIndicates whether the message is a group-targeted message.
pinnedUserID
pinnedUserID: stringDescription: The userID of the message pinner.
pinnedTime
pinnedTime: numberDescription: The time of message pinning.
destructTime
destructTime: numberDescription: The timestamp at which the message will be destroyed.
ZIMMediaMessage
Base class for media message objects.
Details
Identifies a media message.
Declared in ZIMDefines.ts
- Caution:This base class is the basis of all media messages and contains the properties required by media messages.
Properties
fileLocalPath
fileLocalPath: File | stringDetail description: The local path of the media message. Required: If a local file is sent, this parameter must be set by the sender. Otherwise, the message fails to be sent.
fileDownloadUrl
fileDownloadUrl: stringDetail 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: stringDetail 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: stringDetail 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: numberDetail 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.
ZIMTextMessage
Normal text message object.
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
- 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: stringThe content of the text message.
type
type: ZIMMessageType.TextZIMCustomMessage
Custom message object.
Details
Identifies a custom message.
Declared in ZIMDefines.ts
- 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.
Properties
message
message: stringThe content of the text message.
searchedContent
searchedContent: stringDescription: The search content of the message.
subType
subType: unsigned intDescription: 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.
type
type: ZIMMessageType.CustomZIMCommandMessage
Custom binary message object.
Details
Identifies a binary message.
Declared in ZIMDefines.ts
- 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: bytesThe content of the custom message.
type
type: ZIMMessageType.CommandZIMBarrageMessage
Barrage message class.
Details
The barrage message class does not appear in the session and does not store historical messages.
Declared in ZIMDefines.ts
Properties
message
message: stringDescription: The content of the barrage message.
type
type: ZIMMessageType.BarrageZIMImageMessage
Image message object.
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
- 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
thumbnailDownloadUrl
thumbnailDownloadUrl: stringDetail 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.
largeImageDownloadUrl
largeImageDownloadUrl: stringDetail 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: numberDetailed description: The width of the original image.
originalImageHeight
originalImageHeight: numberDetailed description: The height of the original image.
largeImageWidth
largeImageWidth: numberDetailed description: The width of the large image.
largeImageHeight
largeImageHeight: numberDetailed description: The height of the large image.
thumbnailWidth
thumbnailWidth: numberDetailed description: The width of the thumbnail.
thumbnailHeight
thumbnailHeight: numberDetailed description: The height of the thumbnail.
type
type: ZIMMessageType.ImageZIMFileMessage
File message object.
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
- 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
type
type: ZIMMessageType.FileZIMAudioMessage
Audio message object.
Details
Identifies the basic parameters of a message.
Declared in ZIMDefines.ts
- 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: unsigned intDetail description: The duration of the audio file. Required: Required by the sender, if not filled, the audio message will fail to be sent When sending local audio messages.
type
type: ZIMMessageType.AudioZIMVideoMessage
Video message object.
Details
Identifies a video message.
Declared in ZIMDefines.ts
- Caution:When the Type parameter of the base class in the callback is Video, the base class message object can be cast to this class.
Properties
videoDuration
videoDuration: unsigned intDetail description: The duration of the video file. Required: Required by the sender, if not filled, the video message will fail to be sent when sending local video messages.
videoFirstFrameDownloadUrl
videoFirstFrameDownloadUrl: stringDetail 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: numberDetailed description: The width of the first frame of the video.
videoFirstFrameHeight
videoFirstFrameHeight: numberDetailed description: The height of the first frame of the video.
type
type: ZIMMessageType.VideoZIMRevokeMessage
Base class for revoke message objects.
Details
Identifies a revoke message.
Declared in ZIMDefines.ts
- Caution:This base class is the basis of all revoke messages and contains the properties required by revoke messages.
Properties
revokeType
revokeTimestamp
revokeTimestamp: numberDetail description: revoke timestamp.
operatedUserID
operatedUserID: stringDetail description: operated user ID.
originalMessageType
originalTextMessageContent
originalTextMessageContent: stringDetail description: original text message content, if the message to be revoked is not a text message, this field is empty.
revokeExtendedData
revokeExtendedData: stringDetail description: revoke extended data.
revokeStatus
type
type: ZIMMessageType.RevokeZIMCombineMessage
Base class for combine message objects.
Details
Identifies a combine message.
Declared in ZIMDefines.ts
- Caution:This base class is the basis of all combine messages and contains the properties required by combine messages.
Properties
title
title: stringDetail description: Combine message title.
summary
summary: stringDetail description: The summary of combine message.
combineID
combineID: stringDetail description: Combine ID, internal used
messageList
type
type: ZIMMessageType.CombineZIMTipsMessage
Tips message object.
Details
Identifies a tips info message.
Declared in ZIMDefines.ts
- 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
operatedUser
targetUserList
changeInfo
type
type: ZIMMessageType.TipsZIMMultipleMessage
Multiple message object.
Declared in ZIMDefines.ts
Properties
messageInfoList
messageInfoList: ZIMMessageLiteInfo[]Detail description: List of content in the multiple message.
failedIndexList
failedIndexList: number[]Detail description: List of failed index in the multiple message.
type
type: ZIMMessageType.MultipleZIMMessageRootRepliedInfo
Reply to the root message of the message tree.
Declared in ZIMDefines.ts
Properties
state
message
senderUserID
senderUserID: stringDescription: Sender user ID of the root message.
sentTime
sentTime: numberDescription: Sent time of the root message.
repliedCount
repliedCount: numberDescription: Root replied count.
ZIMMessageRootRepliedCountInfo
Information about the number of replies in the reply message tree.
Declared in ZIMDefines.ts
Properties
messageID
messageID: stringDescription: Message ID.
conversationID
conversationID: stringDescription: Conversation ID.
conversationType
count
count: numberDescription: Root replied count.
ZIMMessageMentionedInfo
message mention information.
Declared in ZIMDefines.ts
- message mention information.
Properties
messageID
messageID: stringDescription: Message ID, used to match the notification information to which message it belongs toRequired or not: Developers do not need to fill in.
messageSeq
messageSeq: numberDescription: Message sequence number, used to match the notification information to which message it belongs toRequired or not: Developers do not need to fill in.
fromUserID
fromUserID: stringDescription: From which user. Required: Developers do not need to fill in.
type
type: ZIMMessageMentionedTypeDetails Description: Type of notification, used to distinguish between reminding oneself and reminding everyone. Required: Developers do not need to fill in.
ZIMMessageReceivedInfo
A structure in which the message receiving event carries relevant information.
Declared in ZIMDefines.ts
Properties
conversationID
conversationID: stringDescription: The ID of conversation.
conversationType
isOfflineMessage
isOfflineMessage: booleanDescription: Whether it is an offline message.
ZIMMessageSendConfig
Configurations related to sending messages.
Details
Configurations related to sending messages.
Declared in ZIMDefines.ts
Properties
pushConfig
pushConfig: ZIMPushConfigDescription: Configures the offline push function, If Android or iOS platform is integrated, it is strongly recommended to configure this. Required: Not mandatory.
priority
priority: ZIMMessagePriorityEnumeration value used to set message priority. Required: Must mandatory.
hasReceipt
hasReceipt: booleanDetailed description: When sending a message, whether the message has a receipt.Business scenario: use when you need to bring a receipt for a message.Required: not required.Default value: false.
isNotifyMentionedUsers
isNotifyMentionedUsers: booleanWhether to send push notifications to mentioned users.
isRetrySend
isRetrySend: booleanWhether to resend the failed message.
disableUnreadMessageCount
disableUnreadMessageCount: booleanWhen sending messages that would otherwise affect the other party's unread count, should they no longer be counted as unread by the other party? Whether required: Not required. Default value: false.
isAllowMultipleMessagePartialFailed
isAllowMultipleMessagePartialFailed: booleanWhether to allow some sub-messages to fail to send when sending a multiple message. Whether required: Not required. Default value: false.
ZIMMessageQueryConfig
Example Query message configuration.
Details
Example Query the configurations of messages.
Declared in ZIMDefines.ts
Properties
nextMessage
nextMessage: ZIMMessageDescription: 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: unsigned intDescription: Number of query messages. Required: not required.
reverse
reverse: booleanDescription: Indicates whether the query is in reverse order. Required: not required. Default value: false.
mode
mode: ZIMMessageQueryModeDescription: Sets the mode for querying historical messages. Since the SDK can determine whether local data is complete and therefore return historical messages more quickly, it is recommended to use the default value in most cases. Required: No.
ZIMMessageRevokeConfig
Revoke configurations related to messages.
Details
Revoke configurations related to messages.
Declared in ZIMDefines.ts
Properties
pushConfig
pushConfig: ZIMPushConfigDescription: Configures the offline push function, If Android or iOS platform is integrated, it is strongly recommended to configure this. Required: Not required.
revokeExtendedData
revokeExtendedData: stringDescription: revoking additional messages. Required: Not required.
ZIMMessageDeleteConfig
Delete message configuration.
Details
Delete configurations related to messages.
Declared in ZIMDefines.ts
Properties
isAlsoDeleteServerMessage
isAlsoDeleteServerMessage: booleanDescription: Whether to remove flags for server messages. Required: not required. 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
Through this notification, developers can obtain relevant information before the message object is sent, such as localMessageID, etc.
Declared in ZIMDefines.ts
- Use cases:When developers need to record and cache relevant information before sending a message, they can obtain it by listening to the notification.
- Caution:If no monitoring is required, it can be passed [null].
Properties
onMessageAttached
onMessageAttached: ZIMMessageAttachedResultDetail description: After the message falls into the local DB, the notification will be called back before the message is sent to the server. Business scenario: This interface can be used when the developer needs to obtain the relevant information in the message in advance before sending the message. Required: not required. If no monitoring is required, it can be passed empty. Default: empty.
onMediaUploadingProgress
onMediaUploadingProgress: ZIMMediaUploadingProgressDescription: Media file upload progress.
onMultipleMediaUploadingProgress
onMultipleMediaUploadingProgress: ZIMMultipleMediaUploadingProgressDescription: Multiple media file upload progress.
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
Through this notification, developers can obtain relevant information before the message object is sent, such as localMessageID, etc.
Declared in ZIMDefines.ts
- Use cases:When developers need to record and cache relevant information before sending a message, they can obtain it by listening to the notification.
- Caution:If no monitoring is required, it can be passed [null].
Properties
onMessageAttached
onMessageAttached: ZIMMessageAttachedResultDetail description: After the message falls into the local DB, the notification will be called back before the message is sent to the server. Business scenario: This interface can be used when the developer needs to obtain the relevant information in the message in advance before sending the message. Required: not required. If no monitoring is required, it can be passed [null]. Default: [null].
onMediaUploadingProgress
onMediaUploadingProgress: ZIMMediaUploadingProgressCallback for media upload progress.
ZIMMessageReceiptInfo
receipt information.
Details
receipt information.
Declared in ZIMDefines.ts
Properties
status
messageID
messageID: stringDetailed Description: Message ID. Business scenario: Developers can match the loaded message list according to this ID. Is it required: No, SDK fills in.
conversationID
conversationID: stringSession ID.
conversationType
readMemberCount
readMemberCount: unsigned intDescription: Number of read members.
unreadMemberCount
unreadMemberCount: unsigned intDescription: Number of unread members.
deliveredMemberCount
deliveredMemberCount: unsigned intDescription: Number of delivered members.
isSelfOperated
isSelfOperated: booleanDescription: Whether it is self-operated by multi-terminal.
readTime
readTime: numberDescription: All the recipients have read the timestamp of that moment.
ZIMMessageReactionUserQueryConfig
Configuration for querying reaction user list
Details
When querying reaction member, you need to configure this object.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned long longDescription: 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: unsigned intDescription: How many members are retrieved in one query, 100 at most.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: stringDescription: reaction type, defined by you.
ZIMMessageSentStatusChangeInfo
Notice of Room Message Status Change.
Details
Notice of Room Message Status Change.
Declared in ZIMDefines.ts
Properties
status
message
reason
reason: stringThis 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.
ZIMMessageSearchConfig
Message search configuration.
Details
Message search configuration.
Declared in ZIMDefines.ts
Properties
nextMessage
nextMessage: ZIMMessagePaging 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: unsigned intcount It is recommended to keep the number of items less than 20 to reduce performance overhead.
order
order: ZIMMessageOrderWhen 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: 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: ZIMMessageType[]Message types, can be used to specify message types. Support passing in multiple types.
subMessageTypes
subMessageTypes: unsigned int[]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: 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: numberThe starting point of the search, in milliseconds, with a default value of 0. The format is UTC timestamp.
endTime
endTime: numberThe 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.
ZIMMessageRepliedListQueryConfig
Configuration for querying reply message list.
Details
Configuration class for querying the replied message list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: numberThe 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: numberThe number of queries per query. The upper limit is 100. Exceeding 100 will result in an error.
ZIMMessageEditConfig
(Empty Class) Configurations related to editing messages.
Details
(Empty Class) Configurations related to editing messages.
Declared in ZIMDefines.ts
ZIMSendingMessageCancelConfig
(Empty Class) Configurations related to cancel sending messages.
Details
(Empty Class) Configurations related to cancel sending messages.
Declared in ZIMDefines.ts
ZIMMessagePinConfig
Pinning message configuration
Details
Pin configurations related to messages.
Declared in ZIMDefines.ts
Properties
disableAutoReplace
disableAutoReplace: booleanWhen the number of pinned messages exceeds the limit, replacing older pinned messages in the pinned list during the next pin operation is not allowed. The default value is [false].
ZIMTipsMessageChangeInfo
Tips message additional information.
Details
Tips message additional information.
Declared in ZIMDefines.ts
Properties
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.
Declared in ZIMDefines.ts
Properties
groupDataFlag
groupDataFlag: numberIf 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: stringIf the group name is changed, the changed value will be displayed here.
groupNotice
groupNotice: stringIf the group notice is changed, the changed value will be displayed here.
groupAvatarUrl
groupAvatarUrl: stringIf the group avatar url is changed, the changed value will be displayed here.
groupMutedInfo
groupMutedInfo: ZIMGroupMuteInfoIf the group mute info is changed, the changed value will be displayed here.
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.
Declared in ZIMDefines.ts
Properties
memberRole
memberRole: numberIf a group member's role changes, the changed role will be displayed here.
muteExpiredTime
muteExpiredTime: numberIf the group member's muting expired time changes, the new muting expired time will be displayed here.
groupNewOwner
groupNewOwner: ZIMGroupMemberSimpleInfoDetailed description: tips message generated when the original group owner leaves the group and causes a change in the group owner. This field is true and indicates a newly created group owner.
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.
Declared in ZIMDefines.ts
Properties
isPinned
isPinned: booleanDescribes whether the current operation is a pin operation or an unpin operation.
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.
Declared in ZIMDefines.ts
Properties
pinStatus
message
ZIMMessageReactionChangeInfo
message reaction change information.
Details
A class that describes reaction change information.
Declared in ZIMDefines.ts
Properties
message
message: ZIMMessageDescription: The message object containing updated reaction information, which can be used to directly replace the old data held by the developer.
userChangeInfoList
userChangeInfoList: ZIMMessageReactionUserChangeInfo[]Description: A list of user reaction operation changes under the current message.
ZIMConversation
Session specific content.
Details
The specific content of the session.
Declared in ZIMDefines.ts
Properties
conversationID
conversationID: stringConversation ID.
type
conversationName
conversationName: stringconversationName is the same as the groupName/userName value corresponding to the session.
conversationAvatarUrl
conversationAvatarUrl: stringConversation avatar URL. The peer-to-peer conversation avatar URL is the same as the user avatar URL, and the group conversation avatar URL is the same as the group avatar URL.
conversationAlias
conversationAlias: stringAfter 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.
notificationStatus
notificationStatus: ZIMConversationNotificationStatusConversation notification status.
unreadMessageCount
unreadMessageCount: numberUnread message count of the conversation.
lastMessage
orderKey
orderKey: numberOrderKey is used to describe the order of messages in the session. The larger orderKey is, the newer it is.
isPinned
isPinned: booleanWhether the conversation is pinned.
pinnedTime
pinnedTime: numberDescription: The timestamp of conversation pinned.
mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]When reminded in a message or reminded to everyone in a conversation, this array will record the reminders.
draft
draft: stringConversation draft, when draft set conversation will carry this parameter.
marks
marks: number[]Describes all the existing marks for the conversation.
readMessageSeq
readMessageSeq: numberConversation read message sequence number.
isConversationDisabled
isConversationDisabled: booleanWhether the conversation is unavailable.
selfMutedExpiredTime
selfMutedExpiredTime: numberThe expiration timestamp of the self-mute for this conversation.
messageDestructDuration
messageDestructDuration: numberThe timed message self-destruction duration for the conversation.
ZIMConversationBaseInfo
Conversation base information
Details
The base content of the session.
Declared in ZIMDefines.ts
Properties
conversationID
conversationID: stringConversation ID. For single chat, the conversation ID is the other user ID. For group chat, the conversation ID is the group ID.
conversationType
ZIMGroupConversation
Group session object, extend from ZIMGroupConversation.
Details
Group session object, extend from ZIMGroupConversation.
Declared in ZIMDefines.ts
Properties
isDisabled
isDisabled: booleanWhether the group session is unavailable.
mutedExpiredTime
mutedExpiredTime: numberThe expiration date of the group gag.
ZIMConversationQueryConfig
Query the relevant configuration of the session.
Details
Configurable information when querying a session.
Declared in ZIMDefines.ts
Properties
nextConversation
count
count: unsigned intThe number of sessions to query.
ZIMConversationFilterOption
Search filters related to the conversation.
Details
Configurable filter options when querying conversation list.
Declared in ZIMDefines.ts
Properties
conversationTypes
marks
marks: number[]Conversation mark list
isOnlyUnreadConversation
isOnlyUnreadConversation: booleanWhether to query only unread conversations
pinnedFilter
ZIMConversationTotalUnreadMessageCountQueryConfig
Search filters related to the conversation total unread message count.
Details
Configurable filter options when querying conversation total unread message count.
Declared in ZIMDefines.ts
Properties
conversationTypes
marks
marks: number[]Conversation mark list
ZIMConversationDeleteConfig
Conversation delete configuration
Details
Delete the related configuration of the session.
Declared in ZIMDefines.ts
Properties
isAlsoDeleteServerConversation
isAlsoDeleteServerConversation: booleanWhether to delete server conversations at the same time
ZIMConversationChangeInfo
Conversation change information
Details
Contains information after session changes.
Declared in ZIMDefines.ts
Properties
event
event: ZIMConversationEventaction
conversation
ZIMConversationSearchConfig
Conversation search configuration.
Details
Conversation search configuration.
Declared in ZIMDefines.ts
Properties
mode
nextFlag
nextFlag: unsigned intPagination token, fill in 0 initially, and then fill in the nextFlag returned from the callback to retrieve data for the next page.
totalConversationCount
totalConversationCount: unsigned intThe number of messages that can be retrieved in one search. It is recommended to be less than 20 to reduce performance overhead.
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.
conversationMessageCount
conversationMessageCount: unsigned intThe 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.
messageTypes
messageTypes: ZIMMessageType[]Message types, can be used to specify message types. Support passing in multiple types.
subMessageTypes
subMessageTypes: unsigned int[]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: 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: numberThe starting point of the search, in milliseconds, with a default value of 0. The format is UTC timestamp.
endTime
endTime: numberThe 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
Conversation search result
Details
Information class for conversation search results.
Declared in ZIMDefines.ts
Properties
conversationID
conversationID: stringThe conversation ID of the local message to be search.
conversationType
conversation
totalMessageCount
totalMessageCount: unsigned intTotal message count.
messageList
ZIMRoomInfo
Room information object.
Details
Identifies a unique room.
Declared in ZIMDefines.ts
Properties
roomID
roomID: stringRoom 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: stringRoom name, It is customized by the developer .a string with a maximum length of 64 bytes or less.
ZIMRoomFullInfo
The room details object.
Details
Identifies the detailed information of a room.
Declared in ZIMDefines.ts
Properties
baseInfo
ZIMRoomMemberInfo
Room user information.
Details
A class describing room user.
Declared in ZIMDefines.ts
ZIMRoomMemberQueryConfig
Configuration for querying room member.
Details
When querying member, you need to configure this object.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: stringThe 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.
count
count: unsigned intHow many messages are retrieved in one query.
ZIMRoomAdvancedConfig
Room advanced configuration
Details
Room‘s advanced config.
Declared in ZIMDefines.ts
Properties
roomAttributes
roomAttributes: Map<string, string>Room attributes of a room.
roomDestroyDelayTime
roomDestroyDelayTime: unsigned intRoom destruction time delayed, the unit is seconds. The maximum room destroy delay time is 3 hours.
ZIMRoomAttributesSetConfig
The behavior attribute set by the room attribute.
Details
The behavior attribute set by the room attribute.
Declared in ZIMDefines.ts
Properties
isForce
isForce: booleanWhether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.
isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: booleanRoom attributes are automatically deleted after the owner leaves the room.
isUpdateOwner
isUpdateOwner: booleanWhether to update the owner of the room attribute involved.
ZIMRoomAttributesBatchOperationConfig
The behavior attribute set by the room attribute.
Details
The behavior attribute set by the room attribute.
Declared in ZIMDefines.ts
Properties
isForce
isForce: booleanWhether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.
isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: booleanRoom attributes are automatically deleted after the owner leaves the room.
isUpdateOwner
isUpdateOwner: booleanWhether to update the owner of the room attribute involved.
ZIMRoomAttributesDeleteConfig
The behavior attribute set by the room attribute.
Details
The behavior attribute set by the room attribute.
Declared in ZIMDefines.ts
Properties
isForce
isForce: booleanWhether the operation is mandatory, that is, the property of the room whose owner is another user can be deleted.
ZIMRoomAttributesUpdateInfo
Room attribute update information
Details
Notice of Room Attribute Change.
Declared in ZIMDefines.ts
Properties
action
action: ZIMRoomAttributesUpdateActionBehavioral information of room attribute change notification.
roomAttributes
roomAttributes: Map<string, string>Room attributes.
ZIMRoomMemberAttributesInfo
Room user attribute information.
Details
Detail description: A class describing room user attributes, including UserID and its corresponding attributes.
Declared in ZIMDefines.ts
Properties
userID
userID: stringDetail description: User ID.
attributes
attributes: Map<string, string>Detailed description: room user attributes.
ZIMRoomMemberAttributesOperatedInfo
Room user attribute operation information.
Details
Detail description: room user attribute operation information, including attributes of successful operation and keys of failure.
Declared in ZIMDefines.ts
Properties
attributesInfo
attributesInfo: ZIMRoomMemberAttributesInfoDetailed description: room user attribute information.
errorKeys
errorKeys: string[]Detail description: The key of the room user attribute operation failure.
ZIMRoomMemberAttributesUpdateInfo
Room user attribute update information.
Details
Detailed description: Room user attribute update information.
Declared in ZIMDefines.ts
Properties
attributesInfo
attributesInfo: ZIMRoomMemberAttributesInfoDetailed description: room user attributes.
ZIMRoomMemberAttributesSetConfig
Room user property settings configuration.
Details
room user attribute setting configuration, including configurable whether to retain user attributes after the user leaves, etc.
Declared in ZIMDefines.ts
- Use cases:When setting room user attributes, developers can choose to use them according to their actual application scenarios.
Properties
isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: booleanDefault: true.
ZIMRoomMemberAttributesQueryConfig
Room member attribute query configuration
Details
Detailed description: room user attribute query configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: stringDetail description: Query anchor for room user properties.
count
count: unsigned intcount.
ZIMRoomOperatedInfo
Room operation information.
Details
Detailed description: Room operation information.
Declared in ZIMDefines.ts
Properties
userID
userID: stringDetail description: UserID of the operator.
ZIMGroupInfo
group information.
Details
group information.
Declared in ZIMDefines.ts
Properties
groupID
groupID: stringgroupID.
groupName
groupName: stringGroup name.
groupAvatarUrl
groupAvatarUrl: stringUse Limit: the maximum number of characters is 500 bytes. There is no limit on special characters.
ZIMGroupMuteInfo
Group mute information.
Details
Group mute information.
Declared in ZIMDefines.ts
Properties
mode
expiredTime
expiredTime: numberGroup mute expiration time, measured in seconds. When it's 0, there is no mute; when it's -1, it means permanent mute.
roles
roles: number[]Detail description: Role list muted in the group.
ZIMGroupVerifyInfo
Verification mode for joining the group.
Details
Group verification information class, describing the group entry verification mode.
Declared in ZIMDefines.ts
Properties
joinMode
inviteMode
beInviteMode
ZIMGroupFullInfo
complete group information.
Details
complete group information.
Declared in ZIMDefines.ts
Properties
baseInfo
groupNotice
groupNotice: stringGroup of announcement.
groupAttributes
groupAttributes: Map<string, string>group properties.
groupAlias
groupAlias: stringthe group alias defined by user, which is visible only to that user.
notificationStatus
notificationStatus: ZIMGroupMessageNotificationStatusgroup message notification status.
mutedInfo
createTime
createTime: numberThe timestamp of the server when the group was created.
maxMemberCount
maxMemberCount: unsigned intThe maximum number of group members.
verifyInfo
ZIMGroup
complete group information for group list.
Details
complete group information for group list.
Declared in ZIMDefines.ts
Properties
baseInfo
groupAlias
groupAlias: stringthe group alias defined by user, which is visible only to that user.
notificationStatus
notificationStatus: ZIMGroupMessageNotificationStatusgroup message notification status.
ZIMGroupMemberSimpleInfo
Group member simple information.
Details
Simple information class for group members.
Declared in ZIMDefines.ts
Properties
memberNickname
memberNickname: stringGroup member nickname.
memberRole
memberRole: numbergroup role.
ZIMGroupEnterInfo
Information about group members when they join the group.
Details
Information class for a user entering a group.
Declared in ZIMDefines.ts
Properties
enterTime
enterTime: numberThe timestamp of the server when joining the group.
enterType
operatedUser
ZIMGroupMemberInfo
Group member information.
Details
Group member information.
Declared in ZIMDefines.ts
Properties
memberNickname
memberNickname: stringGroup member nickname.
memberRole
memberRole: numbergroup role.
muteExpiredTime
muteExpiredTime: numberGroup member's mute expiration time. When it's 0, it means no mute; when it's -1, it means permanent mute.
groupEnterInfo
groupEnterInfo: ZIMGroupEnterInfoInformation about group members when they join the group.
ZIMGroupOperatedInfo
The group causes the event to change the operator's information.
Details
The group causes the event to change the operator's information.
Declared in ZIMDefines.ts
Properties
userID
userID: stringThe operator's user ID.
userName
userName: stringThe operator's username.
memberNickname
memberNickname: stringThe operator's group member nickname.
memberRole
memberRole: numberThe operator's group member role.
ZIMGroupMemberQueryConfig
group member query configuration.
Details
group member query configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intnextFlag.
count
count: unsigned intcount. Quantity, upper limit is 100, over 100 will be treated as 100.
ZIMGroupAdvancedConfig
Group advanced configuration.
Details
Group advanced configuration.
Declared in ZIMDefines.ts
Properties
groupNotice
groupNotice: stringgroup notice.
groupAttributes
groupAttributes: Map<string, string>Group properties, up to 10 can be configured..
maxMemberCount
maxMemberCount: unsigned intThe maximum number of group members.
joinMode
inviteMode
beInviteMode
ZIMGroupAttributesUpdateInfo
Group attribute update information.
Details
Group attribute update information.
Declared in ZIMDefines.ts
Properties
action
groupAttributes
groupAttributes: Map<string, string>group properties.
ZIMGroupMessageReceiptMemberQueryConfig
Group message receipt read/unread member query configuration.
Details
Group message receipt read/unread member query configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe pagination cursor. Set to 0 for the first query, then use the nextFlag from the [ZIMGroupMessageReceiptMemberListQueriedCallback] callback for subsequent pages.
count
count: unsigned intThe number of group members to query.
ZIMGroupMessageReceiptMemberListQueryConfig
Group message receipt member query configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe pagination cursor. Set to 0 for the first query, then use the nextFlag from the [ZIMGroupMessageReceiptMemberListQueriedCallback] callback for subsequent pages.
filterType
ZIMGroupSearchConfig
Group search configuration.
Details
Group search configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe flag used to search groups.
count
count: unsigned intcount.
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'.
isAlsoMatchGroupMemberUserName
isAlsoMatchGroupMemberUserName: booleanWhether the search scope includes group member user names. Default is false.
isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: booleanWhether the search scope includes group member user nicknames. Default is false.
ZIMGroupSearchInfo
Group search info.
Details
Group search info.
Declared in ZIMDefines.ts
Properties
groupInfo
userList
ZIMGroupMemberSearchConfig
group member search configuration.
Details
group member search configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe 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.
count
count: unsigned intcount.
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'.
isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: booleanWhether the search scope includes group member user nickname. Default is false.
ZIMGroupMuteConfig
Group mute configuration.
Details
Group mute configuration.
Declared in ZIMDefines.ts
Properties
mode
duration
duration: numberGroup 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.
roles
roles: number[]Group role list.
ZIMGroupMemberMuteConfig
Group members mute configuration.
Details
Group members mute configuration.
Declared in ZIMDefines.ts
Properties
duration
duration: numberGroup 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.
ZIMGroupMemberMutedListQueryConfig
Group muted member list query configuration.
Details
Group muted member list query configuration.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned long longnextFlag.
count
count: unsigned intcount.
ZIMGroupApplicationInfo
Group application information.
Details
Group application information class, containing details of join or invite applications.
Declared in ZIMDefines.ts
Properties
type
state
groupInfo
applyUser
applyUser: ZIMUserInfoDetail description: The applicant is the applicant when applying to join, the invitee when applying to invite, and the inviter when applying by invitation.
createTime
createTime: numberGroup application create time.
updateTime
updateTime: numberGroup application status update time.
wording
wording: stringThe wording of group application information.
operatedUser
operatedUser: ZIMGroupMemberSimpleInfoThe operator who agrees to join the group application.
ZIMGroupJoinApplicationSendConfig
The behavior property of the send group join application setting.
Details
Configuration class for sending group join applications.
Declared in ZIMDefines.ts
Properties
wording
wording: stringPostscript to the application operation.
pushConfig
ZIMGroupJoinApplicationAcceptConfig
The behavior property of the accept group join application setting.
Details
Configuration class for accepting group join applications.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMGroupJoinApplicationRejectConfig
The behavior property of the reject group join application setting.
Details
Configuration class for rejecting group join applications.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMGroupInviteApplicationSendConfig
The behavior property of the send group invite application setting.
Details
Configuration class for sending group invite applications.
Declared in ZIMDefines.ts
Properties
wording
wording: stringPostscript to the application operation.
pushConfig
ZIMGroupInviteApplicationAcceptConfig
The behavior property of the accept group invite application setting.
Details
Configuration class for accepting group invite applications.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMGroupInviteApplicationRejectConfig
The behavior property of the reject group invite application setting.
Details
Configuration class for rejecting group invite applications.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMGroupApplicationListQueryConfig
Query the group application configuration.
Details
Through this configuration, you can set the total number of queries and the pagination query.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intnextFlag.
count
count: unsigned intcount. It is advised to be no more than 30.
ZIMGroupListQueryConfig
Group list query configuration.
Details
Configuration class for querying the group list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: numbernextFlag.
userIDs
userIDs: string[]Specify the list of users.
ZIMCallUserInfo
Call invitation user information.
Details
Call invitation user information.
Declared in ZIMDefines.ts
Properties
userID
userID: stringUser 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
extendedData
extendedData: stringCall the additional information in user information.
ZIMCallInviteConfig
The behavior property of the Send Call Invitation setting.
Details
The behavior property of the Send Call Invitation setting.
Declared in ZIMDefines.ts
Properties
timeout
timeout: unsigned intThe timeout setting of the call invitation, the unit is seconds. The range is [1, 600].
mode
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
enableNotReceivedCheck
enableNotReceivedCheck: booleanIf the pass value is true, the system checks whether the call invitation is delivered in this call and subsequent calls.
pushConfig
ZIMCallingInviteConfig
Behavior property set by quit a call invitation.
Details
Behavior property set by quit a call invitation.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMCallJoinConfig
Add the behavior attribute of the call invitation setting.<br/>.
Details
Add the behavior attribute of the call invitation setting.
Declared in ZIMDefines.ts
Properties
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
ZIMCallQuitConfig
Behavior property set by quit a call invitation.
Details
Behavior property set by quit a call invitation.
Declared in ZIMDefines.ts
Properties
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
pushConfig
ZIMCallEndConfig
End the behavior attribute of the call invitation setting.
Details
End the behavior attribute of the call invitation setting.
Declared in ZIMDefines.ts
Properties
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
pushConfig
ZIMCallCancelConfig
Behavior property that cancels the call invitation setting.
Details
Behavior property that cancels the call invitation setting.
Declared in ZIMDefines.ts
Properties
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
pushConfig
ZIMCallAcceptConfig
Behavior property set by accepting a call invitation.
Details
Behavior property set by accepting a call invitation.
Declared in ZIMDefines.ts
Properties
extendedData
extendedData: stringExtended field, through which the inviter can carry information to the invitee.
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.
Declared in ZIMDefines.ts
- Use cases:You need to pass the configuration item to the interface when invoking the call rejection invitation.
Properties
extendedData
extendedData: stringAdditional fields for attaching custom content when sending a reject invitation.
ZIMCallInvitationQueryConfig
Inquiry the setting attribute of the call invitation list.
Details
Inquiry the setting attribute of the call invitation list
Declared in ZIMDefines.ts
Properties
count
count: unsigned intThe query number is limited to up to 100.
nextFlag
nextFlag: numberThe 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.
ZIMCallInfo
Call invitation information.
Details
Call invitation information.
Declared in ZIMDefines.ts
Properties
callID
callID: stringCall invite ID.
caller
caller: stringCall invitation initiator ID.
inviter
inviter: stringThe inviter ID of the call invitation.
createTime
createTime: numberCall invites to create a timestamp.
endTime
endTime: numberCall invitation end time.
state
mode
extendedData
extendedData: stringCreate a call invitation additional information.
callUserList
ZIMCallUserStateChangeInfo
Call member status change information.
Details
Call member status change information.
Declared in ZIMDefines.ts
Properties
callUserList
ZIMBlacklistQueryConfig
Query the blacklist configuration.
Details
Through this configuration, you can set the total number of queries and the pagination query.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intnextFlag.
count
count: unsigned intcount.
ZIMFriendAddConfig
The behavior property of the Add Friend setting.
Details
The behavior property of the Add Friend setting.
Declared in ZIMDefines.ts
Properties
friendAlias
friendAlias: stringAlias of friend.
friendAttributes
friendAttributes: Map<string, string>Friend attributes. Up to 5 can be set. The key of the attribute can only be selected from k0 to k4.
wording
wording: stringAdd a friend postscript.
ZIMFriendDeleteConfig
The behavior property of the Delete Friend setting.
Details
The behavior property of the Delete Friend setting.
Declared in ZIMDefines.ts
Properties
type
ZIMFriendListQueryConfig
Query the configuration of the friend list.
Details
Query the configuration of the friend list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe index of the current query anchor point.
count
count: unsigned intTotal number of current queries.
ZIMFriendSearchConfig
Friend search configuration.
Details
Configuration class for searching friends.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intnextFlag.
count
count: unsigned intcount.
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.
isAlsoMatchFriendAlias
isAlsoMatchFriendAlias: booleanWhether to match friend aliases.
ZIMFriendRelationCheckConfig
Check the behavior properties of friend relationships.
Details
Check the behavior properties of friend relationships.
Declared in ZIMDefines.ts
Properties
type
ZIMFriendRelationInfo
Friend relationship information.
Details
Detailed description: Friend relationship information.
Declared in ZIMDefines.ts
Properties
type
userID
userID: stringuser ID.
ZIMFriendInfo
Friend information.
Details
Detailed description: Friend information.
Declared in ZIMDefines.ts
Properties
friendAlias
friendAlias: stringThe alias of friend.
friendAttributes
friendAttributes: Map<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: numberFriend add time.
wording
wording: stringAdd a friend postscript.
ZIMFriendApplicationSendConfig
The behavior property of the Send Friend Application setting.
Details
The behavior property of the Send Friend Application setting.
Declared in ZIMDefines.ts
Properties
wording
wording: stringAdd a friend postscript.
friendAlias
friendAlias: stringAlias of friend.
friendAttributes
friendAttributes: Map<string, string>Friend attributes. Up to 5 can be set. The key of the attribute can only be selected from k0 to k4.
pushConfig
ZIMFriendApplicationAcceptConfig
Behavior attributes for accepting friend requests.
Details
Behavior attributes for accepting friend requests.
Declared in ZIMDefines.ts
Properties
friendAlias
friendAlias: stringfriend alias.
friendAttributes
friendAttributes: Map<string, string>friend attributes.
pushConfig
ZIMFriendApplicationRejectConfig
Behavior attributes for rejecting friend application.
Details
Behavior attributes for rejecting friend application.
Declared in ZIMDefines.ts
Properties
pushConfig
ZIMFriendApplicationListQueryConfig
Query the configuration of the friend application list.
Details
Query the configuration of the friend application list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: unsigned intThe index of the current query anchor point.
count
count: unsigned intTotal number of current queries.
ZIMFriendApplicationInfo
Friend application information.
Details
Detailed description: Friend application information.
Declared in ZIMDefines.ts
Properties
type
state
applyUser
applyUser: ZIMUserInfoDetail description: If you are the applicant, here is the respondent information; if you are the respondent, here is the applicant information;.
wording
wording: stringThe wording of friend application information.
createTime
createTime: numberFriend add time.
updateTime
updateTime: numberFriend application status update time.
ZIMCommunityInfo
Basic community information.
Details
Community basic information class.
Declared in ZIMDefines.ts
Properties
communityID
communityID: stringThe community ID.
communityName
communityName: stringThe community name.
communityAvatarUrl
communityAvatarUrl: stringThe URL of the community avatar.
ZIMCommunity
Community object.
Details
Community information class, containing basic attributes of a community.
Declared in ZIMDefines.ts
Properties
baseInfo
totalUnreadMessageCount
totalUnreadMessageCount: unsigned intThe total unread message count across all channels.
ZIMCommunityFullInfo
Full community information.
Details
Community full information class, containing all attributes of a community.
Declared in ZIMDefines.ts
Properties
baseInfo
communityNotice
communityNotice: stringThe community notice.
communityAttributes
communityAttributes: Map<string, string>The community attributes.
createTime
createTime: numberThe time when the community was created.
creatorUserID
creatorUserID: stringThe user ID of the community creator.
currentMemberCount
currentMemberCount: unsigned intThe current number of community members.
notificationStatus
notificationStatus: ZIMCommunityMessageNotificationStatusThe notification status of the community.
ZIMCommunityCreateConfig
Configuration for creating a community.
Details
Configuration class for creating a community.
Declared in ZIMDefines.ts
Properties
communityNotice
communityNotice: stringThe community notice to set when creating the community.
communityAttributes
communityAttributes: Map<string, string>The community attributes to set when creating the community.
ZIMCommunityListQueryConfig
Configuration for querying the community list.
Details
Configuration class for querying the community list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: numberThe pagination flag for querying the next page.
ZIMCommunityChangeInfo
Community change information
Details
Community change information class, describing changes to community attributes.
Declared in ZIMDefines.ts
Properties
action
community
ZIMCommunityMemberListQueryConfig
Community member list query configuration
Details
Configuration class for querying the community member list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: numberThe pagination flag for querying the next page.
channelID
channelID: stringThe channel ID to query members from.
isMutedMember
isMutedMember: booleanWhether to query only muted members.
ZIMCommunityFullInfoUpdateInfo
Community full info update information
Details
Community full information update notification class.
Declared in ZIMDefines.ts
Properties
communityInfo
ZIMCommunityMemberEnterInfo
Community member enter information
Details
Information class for a member entering a community.
Declared in ZIMDefines.ts
Properties
enterTime
enterTime: numberThe time when the member entered the community.
enterType
operatedUserID
operatedUserID: stringThe user ID of the operator (e.g., the inviter).
ZIMCommunityMemberMuteInfo
Community member mute info
Details
Community member mute status information class.
Declared in ZIMDefines.ts
Properties
muteType
muteType: ZIMCommunityMemberMuteTypeThe mute type indicating which level the member is muted at.
channelID
channelID: stringThe channel ID of the mute. Empty means muted at the community level.
muteExpiredTime
muteExpiredTime: numberThe expiration time of the member's mute.
ZIMCommunityMemberInfo
Community member information
Details
Community member information class.
Declared in ZIMDefines.ts
Properties
memberRole
memberRole: numberThe role of the community member.
enterInfo
enterInfo: ZIMCommunityMemberEnterInfoThe information about how the member entered the community.
muteInfo
ZIMCommunityMemberSimpleInfo
Community member simple information
Details
Simple community member information class.
Declared in ZIMDefines.ts
Properties
memberRole
memberRole: numberThe role of the community member.
ZIMCommunityMemberStateChangeInfo
Community member state info change information
Details
Community member state change information class.
Declared in ZIMDefines.ts
Properties
state
action
memberInfo
ZIMCommunityMemberInfoUpdateInfo
Community member full info update information
Details
Community member information update notification class.
Declared in ZIMDefines.ts
Properties
memberInfo
ZIMCommunityChannelInfo
Basic community channel information.
Details
Community channel basic information class.
Declared in ZIMDefines.ts
Properties
channelID
channelID: stringThe channel ID.
channelType
channelName
channelName: stringThe channel name.
channelAvatarUrl
channelAvatarUrl: stringThe URL of the channel avatar.
communityID
communityID: stringThe ID of the community that the channel belongs to.
ZIMCommunityChannelMuteInfo
Community channel mute info
Details
Community channel mute status information class.
Declared in ZIMDefines.ts
Properties
mode
expiredTime
expiredTime: numberThe expiration time of the channel mute.
roles
roles: number[]The muted roles in the community channel.
ZIMCommunityChannel
Community channel object.
Details
Community channel information class, containing basic attributes of a channel.
Declared in ZIMDefines.ts
Properties
baseInfo
conversationID
conversationID: stringThe conversation ID of the community channel.
channelAttributes
channelAttributes: Map<string, string>The community channel attributes.
notificationStatus
notificationStatus: ZIMConversationNotificationStatusThe notification status of the community channel.
unreadMessageCount
unreadMessageCount: numberThe number of unread messages in the community channel.
lastMessage
mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]The list of mention information in the community channel.
selfMutedExpiredTime
selfMutedExpiredTime: numberThe expiration time of the local user's mute in the channel.
draft
draft: stringThe draft message of the community channel.
ZIMCommunityChannelFullInfo
Full community channel information.
Details
Community channel full information class, containing all attributes of a channel.
Declared in ZIMDefines.ts
Properties
baseInfo
createTime
createTime: numberThe time when the channel was created.
creatorUserID
creatorUserID: stringThe user ID of the channel creator.
channelNotice
channelNotice: stringThe community channel notice.
channelAttributes
channelAttributes: Map<string, string>The community channel attributes.
currentMemberCount
currentMemberCount: numberThe current number of channel members.
muteInfo
ZIMCommunityChannelCreateConfig
Configuration for creating a community channel.
Details
Configuration class for creating a community channel.
Declared in ZIMDefines.ts
Properties
channelNotice
channelNotice: stringThe channel notice to set when creating the channel.
channelAttributes
channelAttributes: Map<string, string>The channel attributes to set when creating the channel.
ZIMCommunityChannelListQueryConfig
Configuration for querying the community channel list.
Details
Configuration class for querying the community channel list.
Declared in ZIMDefines.ts
Properties
nextFlag
nextFlag: numberThe pagination flag for querying the next page.
ZIMCommunityChannelChangeInfo
Community channel change information.
Details
Community channel change information class, describing changes to channel attributes.
Declared in ZIMDefines.ts
Properties
action
channel
ZIMCommunityChannelFullInfoUpdateInfo
Community channel full info update information
Details
Community channel full information update notification class.
Declared in ZIMDefines.ts
Properties
channelInfo
ZIMCommunityChannelMuteConfig
Community channel mute configuration
Details
Configuration class for muting a community channel.
Declared in ZIMDefines.ts
Properties
mode
roles
roles: number[]The roles to mute. Empty means muting all roles.
duration
duration: numberThe mute duration in seconds. 0 means unmute.
ZIMCommunityMemberMuteConfig
Community channel mute configuration
Details
Configuration class for muting community members.
Declared in ZIMDefines.ts
Properties
duration
duration: numberThe mute duration in seconds. 0 means unmute.
channelID
channelID: stringThe channel ID. Leave empty to mute at the community level.
ZIMConnectionStateChangedEventResult
The event callback when the connection state changes.
Declared in ZIMEventHandler.ts
Properties
state
event
extendedData
extendedData: stringExtra information when the event occurs, a standard JSON string
ZIMTokenWillExpireEventResult
A reminder callback that the token is about to expire.
Declared in ZIMEventHandler.ts
Properties
second
second: unsigned intThe remaining seconds before the token expires.
ZIMUserInfoUpdatedEventResult
Callback for user information update.
Declared in ZIMEventHandler.ts
Properties
info
ZIMUserStatusUpdatedEventResult
User status change notification.
Declared in ZIMEventHandler.ts
Properties
userStatusList
ZIMUserRuleUpdatedEventResult
Callback of user rule changes.
Declared in ZIMEventHandler.ts
Properties
userRule
ZIMConversationChangedEventResult
Received notification callback for session update.
Declared in ZIMEventHandler.ts
Properties
infoList
ZIMConversationsAllDeletedEventResult
Triggered when all conversations are deleted.
Declared in ZIMEventHandler.ts
Properties
count
count: numberConversation count
ZIMConversationSyncStateChangedEventResult
Received notification callback for synchronizing conv list from server.
Declared in ZIMEventHandler.ts
Properties
state
ZIMConversationTotalUnreadMessageCountUpdatedEventResult
Notification callback for session total unread updates.
Declared in ZIMEventHandler.ts
Properties
totalUnreadMessageCount
totalUnreadMessageCount: numberTotal unread message count
ZIMConversationMessageReceiptChangedEventResult
Callback for notifications of read updates for sessions that receive receipts.
Declared in ZIMEventHandler.ts
Properties
infos
ZIMMessageReceiptChangedEventResult
The notification callback for the read update of the message that received the receipt.
Declared in ZIMEventHandler.ts
Properties
infos
ZIMMessageRevokeReceivedEventResult
The callback for receiving revoke message.
Declared in ZIMEventHandler.ts
Properties
messageList
ZIMMessageReactionsChangedEventResult
The callback of the reactions change.
Declared in ZIMEventHandler.ts
Properties
reactions
changeInfoList
ZIMMessageRepliedCountChangedEventResult
Reply to the event that the number of message trees has changed.
Declared in ZIMEventHandler.ts
Properties
infos
ZIMMessageRepliedInfoChangedEventResult
The reply information of a reply message is changed.
Declared in ZIMEventHandler.ts
Properties
messageList
ZIMMessageDeletedEventResult
Callback when the message is deleted.
Declared in ZIMEventHandler.ts
Properties
conversationID
conversationID: stringConversation ID
conversationType
messageDeleteType
messageList
messageList: ZIMMessage[]Message delete list. This parameter is valid when isDeleteConversationAllMessage is false and ZIMMessageDeleteType is [ZIMMessageDeleteTypeMessageListDeleted].
ZIMMessageSentStatusChangedEventResult
The callback for received message send status change.
Declared in ZIMEventHandler.ts
Properties
infos
ZIMBroadcastMessageReceivedEventResult
The callback of the broadcast message received by all employees.
Declared in ZIMEventHandler.ts
Properties
message
ZIMConversationMessageReceivedEventResult
The callback for receiving group message.
Declared in ZIMEventHandler.ts
Properties
messageList
fromConversationID
fromConversationID: stringMessage source conversation ID
info
ZIMMessageReceivedEventResult
Triggered when messages are received.
Declared in ZIMEventHandler.ts
Properties
messageList
receivedInfo
ZIMMessageEditedEventResult
The message edited event callback result.
Declared in ZIMEventHandler.ts
Properties
messageList
ZIMMessagePinStatusChangedEventResult
The message pinned event callback result.
Declared in ZIMEventHandler.ts
Properties
infos
ZIMRoomStateChangedEventResult
event callback when the room connection status changes.
Declared in ZIMEventHandler.ts
Properties
roomID
roomID: stringRoom ID
state
event
extendedData
extendedData: stringExtended data
ZIMRoomMemberChangedEventResult
Triggered when room members join or leave.
Declared in ZIMEventHandler.ts
Properties
roomID
roomID: stringRoom ID
memberList
ZIMRoomAttributesUpdatedEventResult
Notification of room property changes.
Declared in ZIMEventHandler.ts
Properties
roomID
roomID: stringRoom ID
infos
ZIMRoomMemberAttributesUpdatedEventResult
Room user property update callback.
Declared in ZIMEventHandler.ts
Properties
roomID
roomID: stringRoom ID
infos
operatedInfo
ZIMGroupStateChangedEventResult
Group state change notification callback.
Declared in ZIMEventHandler.ts
Properties
state
event
operatedInfo
groupInfo
ZIMGroupNameUpdatedEventResult
Group name update notification callback.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
groupName
groupName: stringGroup name
operatedInfo
ZIMGroupAvatarUrlUpdatedEventResult
Group avatar URL update notification callback.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
groupAvatarUrl
groupAvatarUrl: stringGroup avatar URL
operatedInfo
ZIMGroupNoticeUpdatedEventResult
Notification callback for group announcement updates.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
groupNotice
groupNotice: stringGroup notice
operatedInfo
ZIMGroupAliasUpdatedEventResult
Group alias update notification callback.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
groupAlias
groupAlias: stringGroup alias
operatedUserID
operatedUserID: stringOperated user ID
ZIMGroupAttributesUpdatedEventResult
Group property update attributes callback.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
infoList
operatedInfo
ZIMGroupMutedInfoUpdatedEventResult
Notification callback for group mute info updates.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
mutedInfo
operatedInfo
ZIMGroupVerifyInfoUpdatedEventResult
Notification callback for group verification mode update.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
verifyInfo
operatedInfo
ZIMGroupApplicationListChangedEventResult
This method will be called back when the group application list changes.
Declared in ZIMEventHandler.ts
Properties
action
applicationList
ZIMGroupApplicationUpdatedEventResult
This method will be called back when the group application list changes.
Declared in ZIMEventHandler.ts
Properties
applicationList
ZIMGroupMemberStateChangedEventResult
Group member state change notification callback.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
state
event
userList
operatedInfo
ZIMGroupMemberInfoUpdatedEventResult
Group member basic information change notification.
Declared in ZIMEventHandler.ts
Properties
groupID
groupID: stringGroup ID
userList
operatedInfo
ZIMCallInvitationCreatedEventResult
The notification callback for the call invitation created by the caller.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
mode
caller
caller: stringCaller user ID
extendedData
extendedData: stringExtended data
timeout
timeout: numberCall timeout
createTime
createTime: numberCall create time
callUserList
ZIMCallInvitationReceivedEventResult
The notification callback for the call invitation received by the invitee.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
mode
caller
caller: stringCaller user ID
inviter
inviter: stringInviter user ID
extendedData
extendedData: stringExtended data
timeout
timeout: numberCall timeout
createTime
createTime: numberCall create time
callUserList
ZIMCallInvitationCancelledEventResult
The notification callback received by the invitee to cancel the invitation.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
mode
inviter
inviter: stringInviter user ID
extendedData
extendedData: stringExtended data
ZIMCallInvitationTimeoutEventResult
Callback for notification of called call invitation timeout.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
mode
ZIMCallInvitationEndedEventResult
Callback for notification of caller call invitation ended.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
mode
caller
caller: stringCaller user ID
operatedUserID
operatedUserID: stringOperated user ID
extendedData
extendedData: stringExtended data
endTime
endTime: numberCall end time
ZIMCallUserStateChangedEventResult
Call the notification of the user status in the invitation invitation.
Declared in ZIMEventHandler.ts
Properties
callID
callID: stringCall ID
callUserList
ZIMBlacklistChangedEventResult
This method will be called back when the blacklist is updated or changes occur.
Declared in ZIMEventHandler.ts
Properties
userList
action
ZIMFriendListChangedEventResult
This method will be called back when the friend list is updated or changes occur.
Declared in ZIMEventHandler.ts
Properties
friendList
action
ZIMFriendInfoUpdatedEventResult
This callback will be triggered when there is an update in the friend information.
Declared in ZIMEventHandler.ts
Properties
friendList
ZIMFriendApplicationListChangedEventResult
Friend application list change event callback.
Declared in ZIMEventHandler.ts
Properties
applicationList
action
ZIMFriendApplicationUpdatedEventResult
The current method will be called when there is an update in the friend request list.
Declared in ZIMEventHandler.ts
Properties
applicationList
ZIMCommunityListChangedEventResult
Triggered when the community list changes.
Declared in ZIMEventHandler.ts
Properties
changeInfoList
ZIMCommunityInfoUpdatedEventResult
Triggered when community information is updated.
Declared in ZIMEventHandler.ts
Properties
updateInfoList
updateInfoList: ZIMCommunityFullInfoUpdateInfo[]List of community information updates.
ZIMCommunityMemberStateChangedEventResult
Triggered when a community member's state changes.
Declared in ZIMEventHandler.ts
Properties
communityID
communityID: stringCommunity ID.
changeInfoList
changeInfoList: ZIMCommunityMemberStateChangeInfo[]List of community member state changes.
ZIMCommunityMemberInfoUpdatedEventResult
Triggered when community member information is updated.
Declared in ZIMEventHandler.ts
Properties
communityID
communityID: stringCommunity ID.
updateInfoList
updateInfoList: ZIMCommunityMemberInfoUpdateInfo[]List of community member information updates.
ZIMCommunityChannelListChangedEventResult
Triggered when the community channel list changes.
Declared in ZIMEventHandler.ts
Properties
communityID
communityID: stringCommunity ID.
changeInfoList
ZIMCommunityChannelInfoUpdatedEventResult
Triggered when community channel information is updated.
Declared in ZIMEventHandler.ts
Properties
communityID
communityID: stringCommunity ID.
updateInfoList
updateInfoList: ZIMCommunityChannelFullInfoUpdateInfo[]List of community channel information updates.
ZIMLogUploadedResult
Methods
onLogUploaded
type ZIMLogUploadedResult = () => voidZIMLoggedInResult
Methods
onLoggedIn
type ZIMLoggedInResult = () => voidAfter the developer login, execute the callback of the result.
- Use cases:Developers can use the [errorCode] in the callback to determine whether the login is successful.
- Triggered when:When the developer calls the [login] interface, the callback will be triggered.
- Available since:1.2.0 and above.
ZIMTokenRenewedResult
Methods
onTokenRenewed
type ZIMTokenRenewedResult = (token: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| token | string | The renewed token. |
ZIMUserNameUpdatedResult
Methods
onUserNameUpdated
type ZIMUserNameUpdatedResult = (userName: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| userName | string | The updated user name. |
ZIMUserAvatarUrlUpdatedResult
Methods
onUserAvatarUrlUpdated
type ZIMUserAvatarUrlUpdatedResult = (userAvatarUrl: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| userAvatarUrl | string | The updated user avatar URL. |
ZIMUserExtendedDataUpdatedResult
Methods
onUserExtendedDataUpdated
type ZIMUserExtendedDataUpdatedResult = (extendedData: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| extendedData | string | The updated user extended data. |
ZIMUserCustomStatusUpdatedResult
Methods
onUserCustomStatusUpdated
type ZIMUserCustomStatusUpdatedResult = (customStatus: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| customStatus | string | The updated user custom status. |
ZIMUsersInfoQueriedResult
Methods
onUsersInfoQueried
type ZIMUsersInfoQueriedResult = (userList: ZIMUserFullInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| userList | ZIMUserFullInfo[] | The queried user information list. |
| errorUserList | ZIMErrorUserInfo[] | The list of user IDs that failed to be queried. |
ZIMUserOfflinePushRuleUpdatedResult
Methods
onUserOfflinePushRuleUpdated
type ZIMUserOfflinePushRuleUpdatedResult = (offlinePushRule: ZIMUserOfflinePushRule) => voidParameters
| Name | Type | Description |
|---|---|---|
| offlinePushRule | ZIMUserOfflinePushRule | The updated user offline push rule. |
ZIMSelfUserInfoQueriedResult
Methods
onSelfUserInfoQueried
type ZIMSelfUserInfoQueriedResult = (selfUserInfo: ZIMSelfUserInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| selfUserInfo | ZIMSelfUserInfo | The current user information and rules. |
ZIMUsersStatusQueriedResult
Methods
onUsersStatusQueried
type ZIMUsersStatusQueriedResult = (userStatusList: ZIMUserStatus[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| userStatusList | ZIMUserStatus[] | The queried user status list. |
| errorUserList | ZIMErrorUserInfo[] | The list of user IDs that failed to be queried. |
ZIMUsersStatusSubscribedResult
Methods
onUsersStatusSubscribed
type ZIMUsersStatusSubscribedResult = (errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| errorUserList | ZIMErrorUserInfo[] | The list of user IDs that failed to subscribe. |
ZIMUsersStatusUnsubscribedResult
Methods
onUsersStatusUnsubscribed
type ZIMUsersStatusUnsubscribedResult = (errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| errorUserList | ZIMErrorUserInfo[] | The list of user IDs that failed to unsubscribe. |
ZIMSubscribedUserStatusListQueriedResult
Methods
onSubscribedUserStatusListQueried
type ZIMSubscribedUserStatusListQueriedResult = (userStatusSubscriptionList: ZIMUserStatusSubscription[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| userStatusSubscriptionList | ZIMUserStatusSubscription[] | The user status subscription list. |
ZIMConversationQueriedResult
Methods
onConversationQueried
type ZIMConversationQueriedResult = (conversation: ZIMConversation) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversation | ZIMConversation | The queried conversation object. |
ZIMConversationListQueriedResult
Methods
onConversationListQueried
type ZIMConversationListQueriedResult = (conversationList: ZIMConversation[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationList | ZIMConversation[] | The queried conversation list. |
ZIMConversationTotalUnreadMessageCountQueriedResult
Methods
onConversationTotalUnreadMessageCountQueried
type ZIMConversationTotalUnreadMessageCountQueriedResult = (unreadMessageCount: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| unreadMessageCount | number | The total count of unread messages across all conversations. |
ZIMConversationDeletedResult
Methods
onConversationDeleted
type ZIMConversationDeletedResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The ID of the deleted conversation. |
| conversationType | ZIMConversationType | The type of the deleted conversation. |
ZIMConversationsAllDeletedResult
Methods
onConversationsAllDeleted
type ZIMConversationsAllDeletedResult = () => voidZIMConversationUnreadMessageCountClearedResult
Methods
onConversationUnreadMessageCountCleared
type ZIMConversationUnreadMessageCountClearedResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The conversation ID whose unread message count was cleared. |
| conversationType | ZIMConversationType | The conversation type whose unread message count was cleared. |
ZIMConversationTotalUnreadMessageCountClearedResult
Methods
onConversationTotalUnreadMessageCountCleared
type ZIMConversationTotalUnreadMessageCountClearedResult = () => voidZIMConversationNotificationStatusSetResult
Methods
onConversationNotificationStatusSet
type ZIMConversationNotificationStatusSetResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The conversation ID for which the notification status was set. |
| conversationType | ZIMConversationType | The conversation type for which the notification status was set. |
ZIMConversationMessageReceiptReadSentResult
Methods
onConversationMessageReceiptReadSent
type ZIMConversationMessageReceiptReadSentResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The conversation ID for which the receipt was sent. |
| conversationType | ZIMConversationType | The conversation type for which the receipt was sent. |
ZIMConversationPinnedStateUpdatedResult
Methods
onConversationPinnedStateUpdated
type ZIMConversationPinnedStateUpdatedResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The conversation ID whose pinned state was updated. |
| conversationType | ZIMConversationType | The conversation type whose pinned state was updated. |
ZIMConversationPinnedListQueriedResult
Methods
onConversationPinnedListQueried
type ZIMConversationPinnedListQueriedResult = (conversationList: ZIMConversation[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationList | ZIMConversation[] | The queried pinned conversation list. |
ZIMConversationDraftSetResult
Methods
onConversationDraftSet
type ZIMConversationDraftSetResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The conversation ID for which the draft was set. |
| conversationType | ZIMConversationType | The conversation type for which the draft was set. |
ZIMConversationMarkSetResult
Methods
onConversationMarkSet
type ZIMConversationMarkSetResult = (failedConversationInfos: ZIMConversationBaseInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| failedConversationInfos | ZIMConversationBaseInfo[] | The list of conversation info objects that failed to have marks set. |
ZIMConversationMessageDestructDurationSetResult
Methods
onConversationMessageDestructDurationSet
type ZIMConversationMessageDestructDurationSetResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | The ID of the conversation for which the setting was applied. |
| conversationType | ZIMConversationType | The type of the conversation for which the setting was applied. |
ZIMConversationsSearchedResult
Methods
onConversationsSearched
type ZIMConversationsSearchedResult = (conversationSearchInfoList: ZIMConversationSearchInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationSearchInfoList | ZIMConversationSearchInfo[] | The list of searched conversation results. |
| nextFlag | number | Anchor for the next page query. |
ZIMMessageSentResult
Methods
onMessageSent
type ZIMMessageSentResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMMessageAttachedResult
Methods
onMessageAttached
type ZIMMessageAttachedResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMMediaUploadingProgress
Methods
onMediaUploadingProgress
type ZIMMediaUploadingProgress = (message: ZIMMediaMessage, currentFileSize: unsigned long long, totalFileSize: unsigned long long) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMediaMessage | Media message object. |
| currentFileSize | unsigned long long | Current file size. |
| totalFileSize | unsigned long long | Total file size. |
ZIMMultipleMediaUploadingProgress
Methods
onMultipleMediaUploadingProgress
type ZIMMultipleMediaUploadingProgress = (message: ZIMMultipleMessage, currentFileSize: number, totalFileSize: number, messageInfoIndex: number, currentIndexFileSize: number, totalIndexFileSize: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMultipleMessage | Multiple media message object. |
| currentFileSize | number | Current file size. |
| totalFileSize | number | Total file size. |
| messageInfoIndex | number | Current message index. |
| currentIndexFileSize | number | Current index file size. |
| totalIndexFileSize | number | Total index file size. |
ZIMMessageQueriedResult
Methods
onMessageQueried
type ZIMMessageQueriedResult = (conversationID: string, conversationType: ZIMConversationType, messageList: ZIMMessage[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | Conversation ID. |
| conversationType | ZIMConversationType | Conversation type. |
| messageList | ZIMMessage[] | Message list. |
ZIMMessageDeletedResult
Methods
onMessageDeleted
type ZIMMessageDeletedResult = (conversationID: string, conversationType: ZIMConversationType) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | Conversation ID. |
| conversationType | ZIMConversationType | Conversation type. |
ZIMConversationMessagesAllDeletedResult
Methods
onConversationMessagesAllDeleted
type ZIMConversationMessagesAllDeletedResult = () => voidZIMMessageRevokedResult
Methods
onMessageRevoked
type ZIMMessageRevokedResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMMessageInsertedResult
Methods
onMessageInserted
type ZIMMessageInsertedResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMMessageLocalExtendedDataUpdatedResult
Methods
onMessageLocalExtendedDataUpdated
type ZIMMessageLocalExtendedDataUpdatedResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMMessageReceiptsReadSentResult
Methods
onMessageReceiptsReadSent
type ZIMMessageReceiptsReadSentResult = (conversationID: string, conversationType: ZIMConversationType, errorMessageIDs: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | Conversation ID. |
| conversationType | ZIMConversationType | Conversation type. |
| errorMessageIDs | string[] | Error message ID list. |
ZIMMessageReceiptsInfoQueriedResult
Methods
onMessageReceiptsInfoQueried
type ZIMMessageReceiptsInfoQueriedResult = (infos: ZIMMessageReceiptInfo[], errorMessageIDs: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| infos | ZIMMessageReceiptInfo[] | Message receipt information list. |
| errorMessageIDs | string[] | Error message ID list. |
ZIMMessagesSearchedResult
Methods
onMessagesSearched
type ZIMMessagesSearchedResult = (conversationID: string, conversationType: ZIMConversationType, messageList: ZIMMessage[], nextMessage: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| conversationID | string | Conversation ID. |
| conversationType | ZIMConversationType | Conversation type. |
| messageList | ZIMMessage[] | Message list. |
| nextMessage | ZIMMessage | Next message object. |
ZIMMessagesGlobalSearchedResult
Methods
onMessagesGlobalSearched
type ZIMMessagesGlobalSearchedResult = (messageList: ZIMMessage[], nextMessage: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| messageList | ZIMMessage[] | Message list. |
| nextMessage | ZIMMessage | Next message object. |
ZIMMessageReactionAddedResult
Methods
onMessageReactionAdded
type ZIMMessageReactionAddedResult = (reaction: ZIMMessageReaction) => voidParameters
| Name | Type | Description |
|---|---|---|
| reaction | ZIMMessageReaction | Message reaction object. |
ZIMMessageReactionDeletedResult
Methods
onMessageReactionDeleted
type ZIMMessageReactionDeletedResult = (reaction: ZIMMessageReaction) => voidParameters
| Name | Type | Description |
|---|---|---|
| reaction | ZIMMessageReaction | Message reaction object. |
ZIMMessageReactionUserListQueriedResult
Methods
onMessageReactionUserListQueried
type ZIMMessageReactionUserListQueriedResult = (message: ZIMMessage, userInfoList: ZIMMessageReactionUserFullInfo[], reactionType: string, nextFlag: number, totalCount: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
| userInfoList | ZIMMessageReactionUserFullInfo[] | List of user reaction information. |
| reactionType | string | Message reaction type. |
| nextFlag | number | List query anchor, used to query the next page. The current value returns 0, which means that the list has been pulled out. |
| totalCount | number | Total user count. |
ZIMCombineMessageDetailQueriedResult
Methods
onCombineMessageDetailQueried
type ZIMCombineMessageDetailQueriedResult = (message: ZIMCombineMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMCombineMessage | Combine message object. The messageList in this object already contains the sub-message list of the merged message. |
ZIMMessageRepliedListQueriedResult
Methods
onMessageRepliedListQueried
type ZIMMessageRepliedListQueriedResult = (messageList: ZIMMessage[], nextFlag: number, rootRepliedInfo: ZIMMessageRootRepliedInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| messageList | ZIMMessage[] | Message list. |
| nextFlag | number | List query anchor, used to query the next page. The current value returns 0, which means that the list has been pulled out. |
| rootRepliedInfo | ZIMMessageRootRepliedInfo | Root message reply information. |
ZIMMessageEditedResult
Methods
onMessageEdited
type ZIMMessageEditedResult = (message: ZIMMessage) => voidParameters
| Name | Type | Description |
|---|---|---|
| message | ZIMMessage | Message object. |
ZIMSendingMessageCancelledResult
Methods
onSendingMessageCancelled
type ZIMSendingMessageCancelledResult = () => voidZIMMessagePinnedResult
Methods
onMessagePinned
type ZIMMessagePinnedResult = () => voidZIMPinnedMessageListQueriedResult
Methods
onPinnedMessageListQueried
type ZIMPinnedMessageListQueriedResult = (messageList: ZIMMessage[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| messageList | ZIMMessage[] | Message list. |
ZIMRoomCreatedResult
Methods
onRoomCreated
type ZIMRoomCreatedResult = (roomInfo: ZIMRoomFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomInfo | ZIMRoomFullInfo | Room information. |
ZIMRoomJoinedResult
Methods
onRoomJoined
type ZIMRoomJoinedResult = (roomInfo: ZIMRoomFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomInfo | ZIMRoomFullInfo | Room information. |
ZIMRoomEnteredResult
Methods
onRoomEntered
type ZIMRoomEnteredResult = (roomInfo: ZIMRoomFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomInfo | ZIMRoomFullInfo | Room information. |
ZIMRoomSwitchedResult
Methods
onRoomSwitched
type ZIMRoomSwitchedResult = (roomInfo: ZIMRoomFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomInfo | ZIMRoomFullInfo | Room information. |
ZIMRoomLeftResult
Methods
onRoomLeft
type ZIMRoomLeftResult = (roomID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
ZIMRoomAllLeftResult
Methods
onRoomAllLeft
type ZIMRoomAllLeftResult = (roomIDs: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomIDs | string[] | Room ID list. |
ZIMRoomMemberQueriedResult
Methods
onRoomMemberQueried
type ZIMRoomMemberQueriedResult = (roomID: string, memberList: ZIMUserInfo[], nextFlag: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| memberList | ZIMUserInfo[] | Room member list. |
| nextFlag | string | Used to query the next page. The current value returns an empty string, which means that the list has been pulled out. |
ZIMRoomMembersQueriedResult
Methods
onRoomMembersQueried
type ZIMRoomMembersQueriedResult = (roomID: string, memberList: ZIMRoomMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| memberList | ZIMRoomMemberInfo[] | Room member list. |
| errorUserList | ZIMErrorUserInfo[] | Error member list. |
ZIMRoomOnlineMemberCountQueriedResult
Methods
onRoomOnlineMemberCountQueried
type ZIMRoomOnlineMemberCountQueriedResult = (roomID: string, count: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| count | unsigned int | Online member count. |
ZIMRoomAttributesOperatedResult
Methods
onRoomAttributesOperated
type ZIMRoomAttributesOperatedResult = (roomID: string, errorKeys: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| errorKeys | string[] | Error key list. |
ZIMRoomAttributesBatchOperatedResult
Methods
onRoomAttributesBatchOperated
type ZIMRoomAttributesBatchOperatedResult = (roomID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
ZIMRoomAttributesQueriedResult
Methods
onRoomAttributesQueried
type ZIMRoomAttributesQueriedResult = (roomID: string, roomAttributes: Map<string, string>) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| roomAttributes | Map<string, string> | Room attributes. |
ZIMRoomMembersAttributesOperatedResult
Methods
onRoomMembersAttributesOperated
type ZIMRoomMembersAttributesOperatedResult = (roomID: string, infos: ZIMRoomMemberAttributesOperatedInfo[], errorUserList: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| infos | ZIMRoomMemberAttributesOperatedInfo[] | Room member attribute operation information list. |
| errorUserList | string[] | Error member list. |
ZIMRoomMembersAttributesQueriedResult
Methods
onRoomMembersAttributesQueried
type ZIMRoomMembersAttributesQueriedResult = (roomID: string, infos: ZIMRoomMemberAttributesInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| infos | ZIMRoomMemberAttributesInfo[] | Room member attribute information list. |
ZIMRoomMemberAttributesListQueriedResult
Methods
onRoomMemberAttributesListQueried
type ZIMRoomMemberAttributesListQueriedResult = (roomID: string, infos: ZIMRoomMemberAttributesInfo[], nextFlag: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| roomID | string | Room ID. |
| infos | ZIMRoomMemberAttributesInfo[] | Room member attribute information list. |
| nextFlag | string | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
ZIMGroupCreatedResult
Methods
onGroupCreated
type ZIMGroupCreatedResult = (groupInfo: ZIMGroupFullInfo, userList: ZIMGroupMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupInfo | ZIMGroupFullInfo | Group information. |
| userList | ZIMGroupMemberInfo[] | Group member information list. |
| errorUserList | ZIMErrorUserInfo[] | Error member list. |
ZIMGroupDismissedResult
Methods
onGroupDismissed
type ZIMGroupDismissedResult = (groupID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
ZIMGroupJoinedResult
Methods
onGroupJoined
type ZIMGroupJoinedResult = (groupInfo: ZIMGroupFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupInfo | ZIMGroupFullInfo | Group information. |
ZIMGroupLeftResult
Methods
onGroupLeft
type ZIMGroupLeftResult = (groupID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
ZIMGroupUsersInvitedResult
Methods
onGroupUsersInvited
type ZIMGroupUsersInvitedResult = (groupID: string, userList: ZIMGroupMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userList | ZIMGroupMemberInfo[] | Group member information list. |
| errorUserList | ZIMErrorUserInfo[] | Error member list. |
ZIMGroupMemberKickedResult
Methods
onGroupMemberKicked
type ZIMGroupMemberKickedResult = (groupID: string, kickedUserIDList: string[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| kickedUserIDList | string[] | List of user IDs kicked out. |
| errorUserList | ZIMErrorUserInfo[] | Error member list. |
ZIMGroupOwnerTransferredResult
Methods
onGroupOwnerTransferred
type ZIMGroupOwnerTransferredResult = (groupID: string, toUserID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| toUserID | string | New group owner user ID. |
ZIMGroupNameUpdatedResult
Methods
onGroupNameUpdated
type ZIMGroupNameUpdatedResult = (groupID: string, groupName: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| groupName | string | Group name. |
ZIMGroupAvatarUrlUpdatedResult
Methods
onGroupAvatarUrlUpdated
type ZIMGroupAvatarUrlUpdatedResult = (groupID: string, groupAvatarUrl: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| groupAvatarUrl | string | Group avatar URL. |
ZIMGroupNoticeUpdatedResult
Methods
onGroupNoticeUpdated
type ZIMGroupNoticeUpdatedResult = (groupID: string, groupNotice: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| groupNotice | string | Group notice. |
ZIMGroupAliasUpdatedResult
Methods
onGroupAliasUpdated
type ZIMGroupAliasUpdatedResult = (groupID: string, groupAlias: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| groupAlias | string | Group alias. |
ZIMGroupInfoQueriedResult
Methods
onGroupInfoQueried
type ZIMGroupInfoQueriedResult = (groupInfo: ZIMGroupFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupInfo | ZIMGroupFullInfo | Group information. |
ZIMGroupAttributesOperatedResult
Methods
onGroupAttributesOperated
type ZIMGroupAttributesOperatedResult = (groupID: string, errorKeys: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| errorKeys | string[] | Error keys. |
ZIMGroupAttributesQueriedResult
Methods
onGroupAttributesQueried
type ZIMGroupAttributesQueriedResult = (groupID: string, groupAttributes: Map<string, string>) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| groupAttributes | Map<string, string> | Group attributes. |
ZIMGroupMemberRoleUpdatedResult
Methods
onGroupMemberRoleUpdated
type ZIMGroupMemberRoleUpdatedResult = (groupID: string, forUserID: string, role: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| forUserID | string | User ID. |
| role | number | User role. |
ZIMGroupMemberNicknameUpdatedResult
Methods
onGroupMemberNicknameUpdated
type ZIMGroupMemberNicknameUpdatedResult = (groupID: string, forUserID: string, nickname: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| forUserID | string | User ID. |
| nickname | string | User nickname. |
ZIMGroupMemberInfoQueriedResult
Methods
onGroupMemberInfoQueried
type ZIMGroupMemberInfoQueriedResult = (groupID: string, userInfo: ZIMGroupMemberInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userInfo | ZIMGroupMemberInfo | Group member user information. |
ZIMGroupListQueriedResult
Methods
onGroupListQueried
type ZIMGroupListQueriedResult = (groupList: ZIMGroup[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupList | ZIMGroup[] | Group list. |
| nextFlag | number | The pagination anchor returned by the SDK is 0 if it means the list has been completely queried, and non-0 if it means there is still data to be queried. |
ZIMGroupMemberListQueriedResult
Methods
onGroupMemberListQueried
type ZIMGroupMemberListQueriedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userList | ZIMGroupMemberInfo[] | Group member list. |
| nextFlag | unsigned int | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
ZIMGroupMemberCountQueriedResult
Methods
onGroupMemberCountQueried
type ZIMGroupMemberCountQueriedResult = (groupID: string, count: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| count | unsigned int | Group member count. |
ZIMGroupMessageReceiptMemberListQueriedResult
Methods
onGroupMessageReceiptMemberListQueried
type ZIMGroupMessageReceiptMemberListQueriedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userList | ZIMGroupMemberInfo[] | Group member list. |
| nextFlag | unsigned int | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
ZIMGroupMutedResult
Methods
onGroupMuted
type ZIMGroupMutedResult = (groupID: string, isMute: boolean, mutedInfo: ZIMGroupMuteInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| isMute | boolean | Whether to mute. |
| mutedInfo | ZIMGroupMuteInfo | Group mute information. |
ZIMGroupMembersMutedResult
Methods
onGroupMembersMuted
type ZIMGroupMembersMutedResult = (groupID: string, isMute: boolean, duration: number, mutedUserIDs: string[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| isMute | boolean | Whether to mute. |
| duration | number | Mute duration. |
| mutedUserIDs | string[] | List of muted member userIDs. |
| errorUserList | ZIMErrorUserInfo[] | List of user information that failed to be muted. |
ZIMGroupMemberMutedListQueriedResult
Methods
onGroupMemberMutedListQueried
type ZIMGroupMemberMutedListQueriedResult = (groupID: string, nextFlag: number, userList: ZIMGroupMemberInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| nextFlag | number | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
| userList | ZIMGroupMemberInfo[] | Group member list. |
ZIMGroupsSearchedResult
Methods
onGroupsSearched
type ZIMGroupsSearchedResult = (groupSearchInfoList: ZIMGroupSearchInfo[], nextFlag: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupSearchInfoList | ZIMGroupSearchInfo[] | Group search information list. |
| nextFlag | unsigned int | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
ZIMGroupMembersSearchedResult
Methods
onGroupMembersSearched
type ZIMGroupMembersSearchedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userList | ZIMGroupMemberInfo[] | Group member list. |
| nextFlag | unsigned int | Used to query the next page. The current value returns 0, which means that the list has been pulled out. |
ZIMGroupJoinModeUpdatedResult
Methods
onGroupJoinModeUpdated
type ZIMGroupJoinModeUpdatedResult = (groupID: string, mode: ZIMGroupJoinMode) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| mode | ZIMGroupJoinMode | Group join mode. |
ZIMGroupInviteModeUpdatedResult
Methods
onGroupInviteModeUpdated
type ZIMGroupInviteModeUpdatedResult = (groupID: string, mode: ZIMGroupInviteMode) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| mode | ZIMGroupInviteMode | Group invite mode. |
ZIMGroupBeInviteModeUpdatedResult
Methods
onGroupBeInviteModeUpdated
type ZIMGroupBeInviteModeUpdatedResult = (groupID: string, mode: ZIMGroupBeInviteMode) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| mode | ZIMGroupBeInviteMode | Group be invite mode. |
ZIMGroupJoinApplicationSentResult
Methods
onGroupJoinApplicationSent
type ZIMGroupJoinApplicationSentResult = (groupID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
ZIMGroupJoinApplicationAcceptedResult
Methods
onGroupJoinApplicationAccepted
type ZIMGroupJoinApplicationAcceptedResult = (groupID: string, userID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userID | string | User ID. |
ZIMGroupJoinApplicationRejectedResult
Methods
onGroupJoinApplicationRejected
type ZIMGroupJoinApplicationRejectedResult = (groupID: string, userID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| userID | string | User ID. |
ZIMGroupInviteApplicationsSentResult
Methods
onGroupInviteApplicationsSent
type ZIMGroupInviteApplicationsSentResult = (groupID: string, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group ID. |
| errorUserList | ZIMErrorUserInfo[] | Invite failed user information list. |
ZIMGroupInviteApplicationAcceptedResult
Methods
onGroupInviteApplicationAccepted
type ZIMGroupInviteApplicationAcceptedResult = (groupInfo: ZIMGroupFullInfo, inviterUserID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupInfo | ZIMGroupFullInfo | Group information. |
| inviterUserID | string | Inviter user ID. |
ZIMGroupInviteApplicationRejectedResult
Methods
onGroupInviteApplicationRejected
type ZIMGroupInviteApplicationRejectedResult = (groupID: string, inviterUserID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| groupID | string | Group information. |
| inviterUserID | string | Inviter user ID. |
ZIMGroupApplicationListQueriedResult
Methods
onGroupApplicationListQueried
type ZIMGroupApplicationListQueriedResult = (applicationList: ZIMGroupApplicationInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| applicationList | ZIMGroupApplicationInfo[] | Group application information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMCallInvitationSentResult
Methods
onCallInvitationSent
type ZIMCallInvitationSentResult = (callID: string, timeout: number, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| timeout | number | |
| errorUserList | ZIMErrorUserInfo[] | List of users who failed to receive the invitation. |
ZIMCallingInvitationSentResult
Methods
onCallingInvitationSent
type ZIMCallingInvitationSentResult = (callID: string, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| errorUserList | ZIMErrorUserInfo[] | List of users who failed to receive the invitation. |
ZIMCallCancelSentResult
Methods
onCallCancelSent
type ZIMCallCancelSentResult = (callID: string, errorInvitees: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| errorInvitees | string[] | Call invitation failed user ID list. |
ZIMCallAcceptanceSentResult
Methods
onCallAcceptanceSent
type ZIMCallAcceptanceSentResult = (callID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
ZIMCallRejectionSentResult
Methods
onCallRejectionSent
type ZIMCallRejectionSentResult = (callID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
ZIMCallJoinSentResult
Methods
onCallJoinSent
type ZIMCallJoinSentResult = (callID: string, createTime: number, joinTime: number, extendedData: string, callUserList: ZIMCallUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| createTime | number | Timestamp when the call was created, in milliseconds. |
| joinTime | number | Timestamp when the user joined the call, in milliseconds. |
| extendedData | string | Extended data. |
| callUserList | ZIMCallUserInfo[] | List of call user information. |
ZIMCallQuitSentResult
Methods
onCallQuitSent
type ZIMCallQuitSentResult = (callID: string, createTime: number, acceptTime: number, quitTime: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| createTime | number | Timestamp when the call was created, in milliseconds. |
| acceptTime | number | Timestamp when the call was accepted, in milliseconds. |
| quitTime | number | Timestamp when the user quit the call, in milliseconds. |
ZIMCallEndSentResult
Methods
onCallEndSent
type ZIMCallEndSentResult = (callID: string, createTime: number, acceptTime: number, endTime: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| callID | string | Call ID. |
| createTime | number | Timestamp when the call was created, in milliseconds. |
| acceptTime | number | Timestamp when the call was accepted, in milliseconds. |
| endTime | number | Timestamp when the call ended, in milliseconds. |
ZIMCallInvitationListQueriedResult
Methods
onCallInvitationListQueried
type ZIMCallInvitationListQueriedResult = (callList: ZIMCallInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| callList | ZIMCallInfo[] | Call information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMFriendAddedResult
Methods
onFriendAdded
type ZIMFriendAddedResult = (friendInfo: ZIMFriendInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfo | ZIMFriendInfo | Friend information. |
ZIMFriendsDeletedResult
Methods
onFriendsDeleted
type ZIMFriendsDeletedResult = (errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| errorUserList | ZIMErrorUserInfo[] | Friend information. |
ZIMFriendListQueriedResult
Methods
onFriendListQueried
type ZIMFriendListQueriedResult = (friendList: ZIMFriendInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendList | ZIMFriendInfo[] | Friend information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMFriendsInfoQueriedResult
Methods
onFriendsInfoQueried
type ZIMFriendsInfoQueriedResult = (friendInfos: ZIMFriendInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfos | ZIMFriendInfo[] | Friend information list. |
| errorUserList | ZIMErrorUserInfo[] | Friend information. |
ZIMFriendsRelationCheckedResult
Methods
onFriendsRelationChecked
type ZIMFriendsRelationCheckedResult = (relationInfos: ZIMFriendRelationInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| relationInfos | ZIMFriendRelationInfo[] | Friend relationship information list. |
| errorUserList | ZIMErrorUserInfo[] | Friend information. |
ZIMFriendApplicationSentResult
Methods
onFriendApplicationSent
type ZIMFriendApplicationSentResult = (applicationInfo: ZIMFriendApplicationInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| applicationInfo | ZIMFriendApplicationInfo | Friend application information. |
ZIMFriendApplicationAcceptedResult
Methods
onFriendApplicationAccepted
type ZIMFriendApplicationAcceptedResult = (friendInfo: ZIMFriendInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfo | ZIMFriendInfo | Friend information. |
ZIMFriendApplicationRejectedResult
Methods
onFriendApplicationRejected
type ZIMFriendApplicationRejectedResult = (userInfo: ZIMUserInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| userInfo | ZIMUserInfo | User information. |
ZIMFriendApplicationListQueriedResult
Methods
onFriendApplicationListQueried
type ZIMFriendApplicationListQueriedResult = (applicationList: ZIMFriendApplicationInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| applicationList | ZIMFriendApplicationInfo[] | Friend application information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMFriendAliasUpdatedResult
Methods
onFriendAliasUpdated
type ZIMFriendAliasUpdatedResult = (friendInfo: ZIMFriendInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfo | ZIMFriendInfo | Friend information. |
ZIMFriendAttributesUpdatedResult
Methods
onFriendAttributesUpdated
type ZIMFriendAttributesUpdatedResult = (friendInfo: ZIMFriendInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfo | ZIMFriendInfo | Friend information. |
ZIMFriendsSearchedResult
Methods
onFriendsSearched
type ZIMFriendsSearchedResult = (friendInfos: ZIMFriendInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| friendInfos | ZIMFriendInfo[] | Friend information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMBlacklistUsersAddedResult
Methods
onBlacklistUsersAdded
type ZIMBlacklistUsersAddedResult = (errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| errorUserList | ZIMErrorUserInfo[] | User information. |
ZIMBlacklistUsersRemovedResult
Methods
onBlacklistUsersRemoved
type ZIMBlacklistUsersRemovedResult = (errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| errorUserList | ZIMErrorUserInfo[] | User information. |
ZIMBlacklistQueriedResult
Methods
onBlacklistQueried
type ZIMBlacklistQueriedResult = (blacklist: ZIMUserInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| blacklist | ZIMUserInfo[] | Blacklist user information list. |
| nextFlag | number | Pagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out. |
ZIMBlacklistCheckedResult
Methods
onBlacklistChecked
type ZIMBlacklistCheckedResult = (isUserInBlacklist: boolean) => voidParameters
| Name | Type | Description |
|---|---|---|
| isUserInBlacklist | boolean | Whether in blacklist. |
ZIMCommunityCreatedResult
Methods
onCommunityCreated
type ZIMCommunityCreatedResult = (communityInfo: ZIMCommunityFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityInfo | ZIMCommunityFullInfo | Community information. |
ZIMCommunityDismissedResult
Methods
onCommunityDismissed
type ZIMCommunityDismissedResult = (communityID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
ZIMCommunityJoinedResult
Methods
onCommunityJoined
type ZIMCommunityJoinedResult = (communityInfo: ZIMCommunityFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityInfo | ZIMCommunityFullInfo | Community information. |
ZIMCommunityLeftResult
Methods
onCommunityLeft
type ZIMCommunityLeftResult = (communityID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
ZIMCommunityListQueriedResult
Methods
onCommunityListQueried
type ZIMCommunityListQueriedResult = (communityList: ZIMCommunity[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityList | ZIMCommunity[] | Community list. |
| nextFlag | number | Next query community list flag. |
ZIMCommunityNameUpdatedResult
Methods
onCommunityNameUpdated
type ZIMCommunityNameUpdatedResult = (communityID: string, communityName: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| communityName | string | Community name. |
ZIMCommunityAvatarUrlUpdatedResult
Methods
onCommunityAvatarUrlUpdated
type ZIMCommunityAvatarUrlUpdatedResult = (communityID: string, communityAvatarUrl: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| communityAvatarUrl | string | Community avatar URL. |
ZIMCommunityNoticeUpdatedResult
Methods
onCommunityNoticeUpdated
type ZIMCommunityNoticeUpdatedResult = (communityID: string, communityNotice: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| communityNotice | string | Community notice. |
ZIMCommunityAttributesOperatedResult
Methods
onCommunityAttributesOperated
type ZIMCommunityAttributesOperatedResult = (communityID: string, errorKeys: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| errorKeys | string[] | Error keys. |
ZIMCommunityNotificationStatusSetResult
Methods
onCommunityNotificationStatusSet
type ZIMCommunityNotificationStatusSetResult = (communityID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
ZIMCommunityInfoQueriedResult
Methods
onCommunityInfoQueried
type ZIMCommunityInfoQueriedResult = (communityInfo: ZIMCommunityFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityInfo | ZIMCommunityFullInfo | Community information. |
ZIMCommunityUsersInvitedResult
Methods
onCommunityUsersInvited
type ZIMCommunityUsersInvitedResult = (communityID: string, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| errorUserList | ZIMErrorUserInfo[] | The error userID list |
ZIMCommunityMembersKickedResult
Methods
onCommunityMembersKicked
type ZIMCommunityMembersKickedResult = (communityID: string, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| errorUserList | ZIMErrorUserInfo[] | The error userID list |
ZIMCommunityMemberRoleUpdatedResult
Methods
onCommunityMemberRoleUpdated
type ZIMCommunityMemberRoleUpdatedResult = (communityID: string, forUserID: string, memberRole: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| forUserID | string | The user ID of the target user. |
| memberRole | number | member role value |
ZIMCommunityOwnerTransferredResult
Methods
onCommunityOwnerTransferred
type ZIMCommunityOwnerTransferredResult = (communityID: string, toUserID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| toUserID | string | The user ID of the new community owner. |
ZIMCommunityMemberListQueriedResult
Methods
onCommunityMemberListQueried
type ZIMCommunityMemberListQueriedResult = (communityID: string, memberList: ZIMCommunityMemberInfo[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| memberList | ZIMCommunityMemberInfo[] | Community member list. |
| nextFlag | number | Anchor for the next community member list query. |
ZIMCommunityMembersQueriedResult
Methods
onCommunityMembersQueried
type ZIMCommunityMembersQueriedResult = (communityID: string, memberList: ZIMCommunityMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| memberList | ZIMCommunityMemberInfo[] | List of queried community members. |
| errorUserList | ZIMErrorUserInfo[] | List of users that failed to be queried. |
ZIMCommunityChannelCreatedResult
Methods
onCommunityChannelCreated
type ZIMCommunityChannelCreatedResult = (channelInfo: ZIMCommunityChannelFullInfo) => voidParameters
| Name | Type | Description |
|---|---|---|
| channelInfo | ZIMCommunityChannelFullInfo | Community channel information. |
ZIMCommunityChannelDismissedResult
Methods
onCommunityChannelDismissed
type ZIMCommunityChannelDismissedResult = (communityID: string, channelID: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | Community channel ID |
ZIMCommunityChannelNameUpdatedResult
Methods
onCommunityChannelNameUpdated
type ZIMCommunityChannelNameUpdatedResult = (communityID: string, channelID: string, channelName: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | Community channel ID |
| channelName | string | Community channel name. |
ZIMCommunityChannelAvatarUrlUpdatedResult
Methods
onCommunityChannelAvatarUrlUpdated
type ZIMCommunityChannelAvatarUrlUpdatedResult = (communityID: string, channelID: string, channelAvatarUrl: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | Community channel ID |
| channelAvatarUrl | string | Community avatar URL. |
ZIMCommunityChannelNoticeUpdatedResult
Methods
onCommunityChannelNoticeUpdated
type ZIMCommunityChannelNoticeUpdatedResult = (communityID: string, channelID: string, channelNotice: string) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | Community channel ID |
| channelNotice | string | Community channel notice. |
ZIMCommunityChannelAttributesOperatedResult
Methods
onCommunityChannelAttributesOperated
type ZIMCommunityChannelAttributesOperatedResult = (communityID: string, channelID: string, errorKeys: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | Community channel ID. |
| errorKeys | string[] | Error keys. |
ZIMCommunityChannelsInfoQueriedResult
Methods
onCommunityChannelsInfoQueried
type ZIMCommunityChannelsInfoQueriedResult = (communityID: string, channelInfos: ZIMCommunityChannelFullInfo[], errorChannelIDs: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelInfos | ZIMCommunityChannelFullInfo[] | List of queried community channels. |
| errorChannelIDs | string[] | List of channel IDs that failed to be queried. |
ZIMCommunityChannelListQueriedResult
Methods
onCommunityChannelListQueried
type ZIMCommunityChannelListQueriedResult = (communityID: string, channelList: ZIMCommunityChannel[], nextFlag: number) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelList | ZIMCommunityChannel[] | Community channel list. |
| nextFlag | number | Anchor for the next channel list query. |
ZIMCommunityMembersMutedResult
Methods
onCommunityMembersMuted
type ZIMCommunityMembersMutedResult = (communityID: string, channelID: string, isMute: boolean, errorUserList: ZIMErrorUserInfo[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| channelID | string | The channel ID. Empty means muted at the community level. |
| isMute | boolean | Whether to mute the members. |
| errorUserList | ZIMErrorUserInfo[] | List of users that failed to be muted. |
ZIMCommunityChannelsMutedResult
Methods
onCommunityChannelsMuted
type ZIMCommunityChannelsMutedResult = (communityID: string, isMute: boolean, errorChannelIDs: string[]) => voidParameters
| Name | Type | Description |
|---|---|---|
| communityID | string | Community ID. |
| isMute | boolean | Whether to mute the channels. |
| errorChannelIDs | string[] | List of channel IDs that failed to be muted. |
