In-app Chat
On this page

Interface

2026-07-24
ZIMErrorZIMAppConfig
ZIMLogConfigZIMUserInfo
ZIMUserFullInfoZIMUserOfflinePushRule
ZIMUserRuleZIMUserStatus
ZIMUserStatusSubscriptionZIMSelfUserInfo
ZIMUserStatusSubscribeConfigZIMSubscribedUserStatusQueryConfig
ZIMUserCustomStatusUpdateConfigZIMErrorUserInfo
ZIMLoginConfigZIMLogoutConfig
ZIMUsersInfoQueryConfigZIMOfflinePushPrivateMessageTemplate
ZIMVoIPConfigZIMPushConfig
ZIMMessageReactionAddConfigZIMMessageReactionUserInfo
ZIMMessageReactionZIMMessageReactionSimpleInfo
ZIMMessageReactionUserFullInfoZIMMessageReactionUserChangeInfo
ZIMMessageLiteInfoZIMTextMessageLiteInfo
ZIMCustomMessageLiteInfoZIMCombineMessageLiteInfo
ZIMRevokeMessageLiteInfoZIMMediaMessageLiteInfo
ZIMImageMessageLiteInfoZIMFileMessageLiteInfo
ZIMAudioMessageLiteInfoZIMVideoMessageLiteInfo
ZIMMultipleMessageLiteInfoZIMMessageRepliedInfo
ZIMMessageZIMMediaMessage
ZIMTextMessageZIMCustomMessage
ZIMCommandMessageZIMBarrageMessage
ZIMImageMessageZIMFileMessage
ZIMAudioMessageZIMVideoMessage
ZIMRevokeMessageZIMCombineMessage
ZIMTipsMessageZIMMultipleMessage
ZIMMessageRootRepliedInfoZIMMessageRootRepliedCountInfo
ZIMMessageMentionedInfoZIMMessageReceivedInfo
ZIMMessageSendConfigZIMMessageQueryConfig
ZIMMessageRevokeConfigZIMMessageDeleteConfig
ZIMMessageSendNotificationZIMMediaMessageSendNotification
ZIMMessageReceiptInfoZIMMessageReactionUserQueryConfig
ZIMMessageSentStatusChangeInfoZIMMessageSearchConfig
ZIMMessageRepliedListQueryConfigZIMMessageEditConfig
ZIMSendingMessageCancelConfigZIMMessagePinConfig
ZIMTipsMessageChangeInfoZIMTipsMessageGroupChangeInfo
ZIMTipsMessageGroupMemberChangeInfoZIMTipsMessagePinStatusChangeInfo
ZIMMessagePinStatusChangeInfoZIMMessageReactionChangeInfo
ZIMConversationZIMConversationBaseInfo
ZIMGroupConversationZIMConversationQueryConfig
ZIMConversationFilterOptionZIMConversationTotalUnreadMessageCountQueryConfig
ZIMConversationDeleteConfigZIMConversationChangeInfo
ZIMConversationSearchConfigZIMConversationSearchInfo
ZIMRoomInfoZIMRoomFullInfo
ZIMRoomMemberInfoZIMRoomMemberQueryConfig
ZIMRoomAdvancedConfigZIMRoomAttributesSetConfig
ZIMRoomAttributesBatchOperationConfigZIMRoomAttributesDeleteConfig
ZIMRoomAttributesUpdateInfoZIMRoomMemberAttributesInfo
ZIMRoomMemberAttributesOperatedInfoZIMRoomMemberAttributesUpdateInfo
ZIMRoomMemberAttributesSetConfigZIMRoomMemberAttributesQueryConfig
ZIMRoomOperatedInfoZIMGroupInfo
ZIMGroupMuteInfoZIMGroupVerifyInfo
ZIMGroupFullInfoZIMGroup
ZIMGroupMemberSimpleInfoZIMGroupEnterInfo
ZIMGroupMemberInfoZIMGroupOperatedInfo
ZIMGroupMemberQueryConfigZIMGroupAdvancedConfig
ZIMGroupAttributesUpdateInfoZIMGroupMessageReceiptMemberQueryConfig
ZIMGroupMessageReceiptMemberListQueryConfigZIMGroupSearchConfig
ZIMGroupSearchInfoZIMGroupMemberSearchConfig
ZIMGroupMuteConfigZIMGroupMemberMuteConfig
ZIMGroupMemberMutedListQueryConfigZIMGroupApplicationInfo
ZIMGroupJoinApplicationSendConfigZIMGroupJoinApplicationAcceptConfig
ZIMGroupJoinApplicationRejectConfigZIMGroupInviteApplicationSendConfig
ZIMGroupInviteApplicationAcceptConfigZIMGroupInviteApplicationRejectConfig
ZIMGroupApplicationListQueryConfigZIMGroupListQueryConfig
ZIMCallUserInfoZIMCallInviteConfig
ZIMCallingInviteConfigZIMCallJoinConfig
ZIMCallQuitConfigZIMCallEndConfig
ZIMCallCancelConfigZIMCallAcceptConfig
ZIMCallRejectConfigZIMCallInvitationQueryConfig
ZIMCallInfoZIMCallUserStateChangeInfo
ZIMBlacklistQueryConfigZIMFriendAddConfig
ZIMFriendDeleteConfigZIMFriendListQueryConfig
ZIMFriendSearchConfigZIMFriendRelationCheckConfig
ZIMFriendRelationInfoZIMFriendInfo
ZIMFriendApplicationSendConfigZIMFriendApplicationAcceptConfig
ZIMFriendApplicationRejectConfigZIMFriendApplicationListQueryConfig
ZIMFriendApplicationInfoZIMCommunityInfo
ZIMCommunityZIMCommunityFullInfo
ZIMCommunityCreateConfigZIMCommunityListQueryConfig
ZIMCommunityChangeInfoZIMCommunityMemberListQueryConfig
ZIMCommunityFullInfoUpdateInfoZIMCommunityMemberEnterInfo
ZIMCommunityMemberMuteInfoZIMCommunityMemberInfo
ZIMCommunityMemberSimpleInfoZIMCommunityMemberStateChangeInfo
ZIMCommunityMemberInfoUpdateInfoZIMCommunityChannelInfo
ZIMCommunityChannelMuteInfoZIMCommunityChannel
ZIMCommunityChannelFullInfoZIMCommunityChannelCreateConfig
ZIMCommunityChannelListQueryConfigZIMCommunityChannelChangeInfo
ZIMCommunityChannelFullInfoUpdateInfoZIMCommunityChannelMuteConfig
ZIMCommunityMemberMuteConfigZIMConnectionStateChangedEventResult
ZIMTokenWillExpireEventResultZIMUserInfoUpdatedEventResult
ZIMUserStatusUpdatedEventResultZIMUserRuleUpdatedEventResult
ZIMConversationChangedEventResultZIMConversationsAllDeletedEventResult
ZIMConversationSyncStateChangedEventResultZIMConversationTotalUnreadMessageCountUpdatedEventResult
ZIMConversationMessageReceiptChangedEventResultZIMMessageReceiptChangedEventResult
ZIMMessageRevokeReceivedEventResultZIMMessageReactionsChangedEventResult
ZIMMessageRepliedCountChangedEventResultZIMMessageRepliedInfoChangedEventResult
ZIMMessageDeletedEventResultZIMMessageSentStatusChangedEventResult
ZIMBroadcastMessageReceivedEventResultZIMConversationMessageReceivedEventResult
ZIMMessageReceivedEventResultZIMMessageEditedEventResult
ZIMMessagePinStatusChangedEventResultZIMRoomStateChangedEventResult
ZIMRoomMemberChangedEventResultZIMRoomAttributesUpdatedEventResult
ZIMRoomMemberAttributesUpdatedEventResultZIMGroupStateChangedEventResult
ZIMGroupNameUpdatedEventResultZIMGroupAvatarUrlUpdatedEventResult
ZIMGroupNoticeUpdatedEventResultZIMGroupAliasUpdatedEventResult
ZIMGroupAttributesUpdatedEventResultZIMGroupMutedInfoUpdatedEventResult
ZIMGroupVerifyInfoUpdatedEventResultZIMGroupApplicationListChangedEventResult
ZIMGroupApplicationUpdatedEventResultZIMGroupMemberStateChangedEventResult
ZIMGroupMemberInfoUpdatedEventResultZIMCallInvitationCreatedEventResult
ZIMCallInvitationReceivedEventResultZIMCallInvitationCancelledEventResult
ZIMCallInvitationTimeoutEventResultZIMCallInvitationEndedEventResult
ZIMCallUserStateChangedEventResultZIMBlacklistChangedEventResult
ZIMFriendListChangedEventResultZIMFriendInfoUpdatedEventResult
ZIMFriendApplicationListChangedEventResultZIMFriendApplicationUpdatedEventResult
ZIMCommunityListChangedEventResultZIMCommunityInfoUpdatedEventResult
ZIMCommunityMemberStateChangedEventResultZIMCommunityMemberInfoUpdatedEventResult
ZIMCommunityChannelListChangedEventResultZIMCommunityChannelInfoUpdatedEventResult
ZIMLogUploadedResultZIMLoggedInResult
ZIMTokenRenewedResultZIMUserNameUpdatedResult
ZIMUserAvatarUrlUpdatedResultZIMUserExtendedDataUpdatedResult
ZIMUserCustomStatusUpdatedResultZIMUsersInfoQueriedResult
ZIMUserOfflinePushRuleUpdatedResultZIMSelfUserInfoQueriedResult
ZIMUsersStatusQueriedResultZIMUsersStatusSubscribedResult
ZIMUsersStatusUnsubscribedResultZIMSubscribedUserStatusListQueriedResult
ZIMConversationQueriedResultZIMConversationListQueriedResult
ZIMConversationTotalUnreadMessageCountQueriedResultZIMConversationDeletedResult
ZIMConversationsAllDeletedResultZIMConversationUnreadMessageCountClearedResult
ZIMConversationTotalUnreadMessageCountClearedResultZIMConversationNotificationStatusSetResult
ZIMConversationMessageReceiptReadSentResultZIMConversationPinnedStateUpdatedResult
ZIMConversationPinnedListQueriedResultZIMConversationDraftSetResult
ZIMConversationMarkSetResultZIMConversationMessageDestructDurationSetResult
ZIMConversationsSearchedResultZIMMessageSentResult
ZIMMessageAttachedResultZIMMediaUploadingProgress
ZIMMultipleMediaUploadingProgressZIMMessageQueriedResult
ZIMMessageDeletedResultZIMConversationMessagesAllDeletedResult
ZIMMessageRevokedResultZIMMessageInsertedResult
ZIMMessageLocalExtendedDataUpdatedResultZIMMessageReceiptsReadSentResult
ZIMMessageReceiptsInfoQueriedResultZIMMessagesSearchedResult
ZIMMessagesGlobalSearchedResultZIMMessageReactionAddedResult
ZIMMessageReactionDeletedResultZIMMessageReactionUserListQueriedResult
ZIMCombineMessageDetailQueriedResultZIMMessageRepliedListQueriedResult
ZIMMessageEditedResultZIMSendingMessageCancelledResult
ZIMMessagePinnedResultZIMPinnedMessageListQueriedResult
ZIMRoomCreatedResultZIMRoomJoinedResult
ZIMRoomEnteredResultZIMRoomSwitchedResult
ZIMRoomLeftResultZIMRoomAllLeftResult
ZIMRoomMemberQueriedResultZIMRoomMembersQueriedResult
ZIMRoomOnlineMemberCountQueriedResultZIMRoomAttributesOperatedResult
ZIMRoomAttributesBatchOperatedResultZIMRoomAttributesQueriedResult
ZIMRoomMembersAttributesOperatedResultZIMRoomMembersAttributesQueriedResult
ZIMRoomMemberAttributesListQueriedResultZIMGroupCreatedResult
ZIMGroupDismissedResultZIMGroupJoinedResult
ZIMGroupLeftResultZIMGroupUsersInvitedResult
ZIMGroupMemberKickedResultZIMGroupOwnerTransferredResult
ZIMGroupNameUpdatedResultZIMGroupAvatarUrlUpdatedResult
ZIMGroupNoticeUpdatedResultZIMGroupAliasUpdatedResult
ZIMGroupInfoQueriedResultZIMGroupAttributesOperatedResult
ZIMGroupAttributesQueriedResultZIMGroupMemberRoleUpdatedResult
ZIMGroupMemberNicknameUpdatedResultZIMGroupMemberInfoQueriedResult
ZIMGroupListQueriedResultZIMGroupMemberListQueriedResult
ZIMGroupMemberCountQueriedResultZIMGroupMessageReceiptMemberListQueriedResult
ZIMGroupMutedResultZIMGroupMembersMutedResult
ZIMGroupMemberMutedListQueriedResultZIMGroupsSearchedResult
ZIMGroupMembersSearchedResultZIMGroupJoinModeUpdatedResult
ZIMGroupInviteModeUpdatedResultZIMGroupBeInviteModeUpdatedResult
ZIMGroupJoinApplicationSentResultZIMGroupJoinApplicationAcceptedResult
ZIMGroupJoinApplicationRejectedResultZIMGroupInviteApplicationsSentResult
ZIMGroupInviteApplicationAcceptedResultZIMGroupInviteApplicationRejectedResult
ZIMGroupApplicationListQueriedResultZIMCallInvitationSentResult
ZIMCallingInvitationSentResultZIMCallCancelSentResult
ZIMCallAcceptanceSentResultZIMCallRejectionSentResult
ZIMCallJoinSentResultZIMCallQuitSentResult
ZIMCallEndSentResultZIMCallInvitationListQueriedResult
ZIMFriendAddedResultZIMFriendsDeletedResult
ZIMFriendListQueriedResultZIMFriendsInfoQueriedResult
ZIMFriendsRelationCheckedResultZIMFriendApplicationSentResult
ZIMFriendApplicationAcceptedResultZIMFriendApplicationRejectedResult
ZIMFriendApplicationListQueriedResultZIMFriendAliasUpdatedResult
ZIMFriendAttributesUpdatedResultZIMFriendsSearchedResult
ZIMBlacklistUsersAddedResultZIMBlacklistUsersRemovedResult
ZIMBlacklistQueriedResultZIMBlacklistCheckedResult
ZIMCommunityCreatedResultZIMCommunityDismissedResult
ZIMCommunityJoinedResultZIMCommunityLeftResult
ZIMCommunityListQueriedResultZIMCommunityNameUpdatedResult
ZIMCommunityAvatarUrlUpdatedResultZIMCommunityNoticeUpdatedResult
ZIMCommunityAttributesOperatedResultZIMCommunityNotificationStatusSetResult
ZIMCommunityInfoQueriedResultZIMCommunityUsersInvitedResult
ZIMCommunityMembersKickedResultZIMCommunityMemberRoleUpdatedResult
ZIMCommunityOwnerTransferredResultZIMCommunityMemberListQueriedResult
ZIMCommunityMembersQueriedResultZIMCommunityChannelCreatedResult
ZIMCommunityChannelDismissedResultZIMCommunityChannelNameUpdatedResult
ZIMCommunityChannelAvatarUrlUpdatedResultZIMCommunityChannelNoticeUpdatedResult
ZIMCommunityChannelAttributesOperatedResultZIMCommunityChannelsInfoQueriedResult
ZIMCommunityChannelListQueriedResultZIMCommunityMembersMutedResult
ZIMCommunityChannelsMutedResult

ZIMError

Error infomation

Details

Error infomation.

Declared in ZIMDefines.ts

Properties

code

code
code: ZIMErrorCode

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

message

message
message: string

Description: Error infomation description.

ZIMAppConfig

ZIM application configuration, including AppID and AppSign.

Declared in ZIMDefines.ts

Properties

appID

appID
appID: unsigned int

Description

, 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
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
userID: string

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

userName

userName
userName: string

Description: User name, defined by you. For version 2.0.0 and onwards, the string has a maximum length of 256 bytes.Required: Not required.Privacy reminder: Please do not provide sensitive personal information, including but not limited to mobile phone numbers, ID card numbers, passport numbers, and real names.

userAvatarUrl

userAvatarUrl
userAvatarUrl: string

User avatar URL

userExtendedData

userExtendedData
userExtendedData: string

User extended data. This field is currently only available in room related interfaces.

type

type

User 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

baseInfo
baseInfo: ZIMUserInfo

Description: User basic information.

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
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
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

offlinePushRule
offlinePushRule: ZIMUserOfflinePushRule

The user's current rule information.

ZIMUserStatus

User status data

Details

Contains data about the user's online status.

Declared in ZIMDefines.ts

Properties

userID

userID
userID: string

A unique identifier for a single user.

onlineStatus

onlineStatus
onlineStatus: ZIMUserOnlineStatus

Enumeration that represents the current online status of the user.

onlinePlatforms

onlinePlatforms
onlinePlatforms: 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
customStatus: string

User-defined status. The default maximum value is 64 bytes. The default expiration time is 1 day. At login, if the field is an empty string (which is the default), the current user's custom state is not modified.

customStatusExpiredTime

customStatusExpiredTime
customStatusExpiredTime: number

Expired timestamp of the custom status.

lastUpdateTime

lastUpdateTime
lastUpdateTime: number

Timestamp when user onlineStatus or customStatus was last changed, whichever is the greater.

lastOnlineStatusUpdateTime

lastOnlineStatusUpdateTime
lastOnlineStatusUpdateTime: number

The timestamp of the last change of the user onlineStatus, which can be used to show that the user was offline/logged in before xxx minutes.

lastCustomStatusUpdateTime

lastCustomStatusUpdateTime
lastCustomStatusUpdateTime: number

The timestamp when User customStatus was last changed, which can be used to show when the custom status was last changed.

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

userStatus
userStatus: ZIMUserStatus

The online status of the user.

subscribeExpiredTime

subscribeExpiredTime
subscribeExpiredTime: number

The 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

userFullInfo
userFullInfo: ZIMUserFullInfo

Personal information of the current user.

userRule

userRule
userRule: ZIMUserRule

Rules for the current user, setting information.

userStatus

userStatus
userStatus: ZIMUserStatus

The online status of the user.

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
subscriptionDuration: number

Subscription 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
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
duration: number

Duration 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
userID: string

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

reason

reason
reason: unsigned int

Description 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
userName: string

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

token

token
token: string

Description: Token carried during login.Use cases: Only pass this parameter in the scenario where token is used for authentication.Required: No.

isOfflineLogin

isOfflineLogin
isOfflineLogin: boolean

Description: Whether it is offline login.Use cases: Set this parameter to true when performing offline login.Required: No.Default value: false.

customStatus

customStatus
customStatus: string

Description: Custom status.Use cases: Only pass this parameter when you need to customize the user status during login.Required: No.

customStatusDuration

customStatusDuration
customStatusDuration: number

Description: 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
isClearDB: boolean

Whether 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
isQueryFromServer: boolean

Detail 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
templateID: string

Description: 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
titleParameters: string

Description: 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
contentParameters: string

Description: 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
iOSVoIPHandleType: ZIMCXHandleType

Description: The type of contact information for the VoIP caller, by default, is generic.

iOSVoIPHandleValue

iOSVoIPHandleValue
iOSVoIPHandleValue: string

Description: The contact information of the VoIP caller. It is related to iOSVoIPHandleType. When iOSVoIPHandleType is PhoneNumber, the Value is a sequence of digits; when iOSVoIPHandleType is EmailAddress, the Value is an email address; when the contact information is of other types, the Value typically follows some domain-specific format, such as a username, numeric ID, or URL.

iOSVoIPHasVideo

iOSVoIPHasVideo
iOSVoIPHasVideo: boolean

Description: 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
title: string

Description: Used to set the push title.Required: Not required.

content

content
content: string

Description: Used to set offline push content.Required: Not required.

payload

payload
payload: string

Description: This parameter is used to set the pass-through field of offline push.Required: Not required.

resourcesID

resourcesID
resourcesID: string

Description: Offline push advanced configuration for mapping console Settings, with the maximum of 32 characters and defined by yourself.Required: Not required.

threadID

threadID
threadID: string

Description: Used to set the thread ID of offline push.Required: Not required.

enableBadge

enableBadge
enableBadge: boolean

Description: Push whether to carry corner information switch.

badgeIncrement

badgeIncrement
badgeIncrement: number

Description: The incremental index number carried by the push.

voIPConfig

voIPConfig
voIPConfig: ZIMVoIPConfig

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

privateMessageTemplate

privateMessageTemplate
privateMessageTemplate: ZIMOfflinePushPrivateMessageTemplate

Description: 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
increaseCount: number

Description: 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
userID: string

Description: user ID

ZIMMessageReaction

message reaction infos

Details

message reaction infos.

Declared in ZIMDefines.ts

Properties

reactionType

reactionType
reactionType: string

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

conversationID

conversationID
conversationID: string

Description: conversationID.

conversationType

conversationType
conversationType: ZIMConversationType

Description: conversation type.

messageID

messageID
messageID: string

Detail description: reaction message ID.

messageSeq

messageSeq
messageSeq: number

Detail description: message sequence.

totalCount

totalCount
totalCount: unsigned int

Description: The reaction users number.

isSelfIncluded

isSelfIncluded
isSelfIncluded: boolean

Description: The reaciton users if included myself.

userList

userList

Description: Reaction user info list.

sumCount

sumCount
sumCount: number

Detailed description: The sum count of reaction.

ZIMMessageReactionSimpleInfo

message reaction infos

Details

message reaction infos.

Declared in ZIMDefines.ts

Properties

reactionType

reactionType
reactionType: string

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

sumCount

sumCount
sumCount: number

Detailed 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
userID: string

Description: user ID

reactions

reactions

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
userID: string

user ID.

reactionType

reactionType
reactionType: string

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

action

action

reaction change action.

sumCount

sumCount
sumCount: number

Description: 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

type

Description: Message type.

ZIMTextMessageLiteInfo

Normal text message lite info object.

Declared in ZIMDefines.ts

Properties

message

message
message: string

Description: Text message content.

type

type
type: ZIMMessageType.Text

ZIMCustomMessageLiteInfo

Custom message lite information.

Declared in ZIMDefines.ts

Properties

message

message
message: string

Description: Custom message content.

searchedContent

searchedContent
searchedContent: string

Description: Custom message search content.

subType

subType
subType: number

Description: Custom message sub-type.

type

type
type: ZIMMessageType.Custom

ZIMCombineMessageLiteInfo

Base class for combine message lite info objects.

Declared in ZIMDefines.ts

Properties

title

title
title: string

Description: Combine message title.

summary

summary
summary: string

Description: Combine message summary.

type

type
type: ZIMMessageType.Combine

ZIMRevokeMessageLiteInfo

Base class for revoke message lite info objects.

Declared in ZIMDefines.ts

Properties

type

type
type: ZIMMessageType.Revoke

ZIMMediaMessageLiteInfo

Base class for media message lite info objects.

Declared in ZIMDefines.ts

Properties

fileSize

fileSize
fileSize: number

Description: Media file size.

fileName

fileName
fileName: string

Description: Media file name.

fileLocalPath

fileLocalPath
fileLocalPath: File | string

Description: Media file local path.

fileDownloadUrl

fileDownloadUrl
fileDownloadUrl: string

Description: Media file download address.

ZIMImageMessageLiteInfo

Image message lite information.

Declared in ZIMDefines.ts

Properties

originalImageWidth

originalImageWidth
originalImageWidth: number

Description: Original image width.

originalImageHeight

originalImageHeight
originalImageHeight: number

Description: Original image height.

largeImageWidth

largeImageWidth
largeImageWidth: number

Description: Large image width.

largeImageHeight

largeImageHeight
largeImageHeight: number

Description: Large image height.

largeImageDownloadUrl

largeImageDownloadUrl
largeImageDownloadUrl: string

Description: Large image download address.

thumbnailWidth

thumbnailWidth
thumbnailWidth: number

Description: Thumbnail image width.

thumbnailHeight

thumbnailHeight
thumbnailHeight: number

Description: Thumbnail image height.

thumbnailDownloadUrl

thumbnailDownloadUrl
thumbnailDownloadUrl: string

Description: Thumbnail image download address.

type

type
type: ZIMMessageType.Image

ZIMFileMessageLiteInfo

File message lite information.

Declared in ZIMDefines.ts

Properties

type

type
type: ZIMMessageType.File

ZIMAudioMessageLiteInfo

Audio message lite information.

Declared in ZIMDefines.ts

Properties

audioDuration

audioDuration
audioDuration: number

Description: Audio duration.

type

type
type: ZIMMessageType.Audio

ZIMVideoMessageLiteInfo

Video message lite information.

Declared in ZIMDefines.ts

Properties

videoDuration

videoDuration
videoDuration: number

Description: Video duration.

videoFirstFrameWidth

videoFirstFrameWidth
videoFirstFrameWidth: number

Description: Video first frame width.

videoFirstFrameHeight

videoFirstFrameHeight
videoFirstFrameHeight: number

Description: Video first frame height.

videoFirstFrameDownloadUrl

videoFirstFrameDownloadUrl
videoFirstFrameDownloadUrl: string

Description: Video first frame download address.

type

type
type: ZIMMessageType.Video

ZIMMultipleMessageLiteInfo

Multiple messages lite information.

Declared in ZIMDefines.ts

Properties

messageInfoList

messageInfoList
messageInfoList: ZIMMessageLiteInfo[]

Description: Message list.

type

type
type: ZIMMessageType.Multiple

ZIMMessageRepliedInfo

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

Declared in ZIMDefines.ts

Properties

state

state

Description: Message replied state.

messageInfo

messageInfo
messageInfo: ZIMMessageLiteInfo

Description: Replied message lite information.

senderUserID

senderUserID
senderUserID: string

Description: Sender user ID of the replied message.

sentTime

sentTime
sentTime: number

Description: Sent time of the replied message.

messageID

messageID
messageID: string

Description: ID of the replied message.

messageSeq

messageSeq
messageSeq: number

Description: 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

type

Identifies the type of this message.

messageID

messageID
messageID: string

Description: 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
localMessageID: string

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

messageSeq

messageSeq
messageSeq: number

Description: The sequence number of the message.

senderUserID

senderUserID
senderUserID: string

Description:Displays the userID of the sender of this message.

conversationID

conversationID
conversationID: string

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

conversationType

conversationType
conversationType: ZIMConversationType

Description: The type of conversation to which the message belongs.

direction

direction

Description: Used to describe whether a message is sent or received.

sentStatus

sentStatus

Description: Describes the sending status of a message.

timestamp

timestamp
timestamp: unsigned long long

Description: 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
orderKey: number

Description

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

isUserInserted

isUserInserted
isUserInserted: boolean

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

receiptStatus

receiptStatus

Detailed Description: Describe the receipt status of the messageBusiness scenario: used to determine the status of the current message in the receipt message

extendedData

extendedData
extendedData: string

Description: 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 higher

localExtendedData

localExtendedData
localExtendedData: string

Description: 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
reactions: ZIMMessageReaction[]

Description: Message statement list, which can carry data strongly related to users such as emoji expressions and voting information.

isBroadcastMessage

isBroadcastMessage
isBroadcastMessage: boolean

Description: Whether the message is pushed by all employees. Required: Internal assignment.

mentionedUserIDs

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
isMentionAll: boolean

Description: 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

repliedInfo

Description: Message reply information.

rootRepliedCount

rootRepliedCount
rootRepliedCount: number

Description: Root replied count.

isServerMessage

isServerMessage
isServerMessage: boolean

Whether the message was sent by the server.

editorUserID

editorUserID
editorUserID: string

Description: The userID of the message editor.

editedTime

editedTime
editedTime: number

Description: The time of message editing.

isGroupTargetedMessage

isGroupTargetedMessage
isGroupTargetedMessage: boolean

Indicates whether the message is a group-targeted message.

pinnedUserID

pinnedUserID
pinnedUserID: string

Description: The userID of the message pinner.

pinnedTime

pinnedTime
pinnedTime: number

Description: The time of message pinning.

destructTime

destructTime
destructTime: number

Description: 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
fileLocalPath: File | string

Detail 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
fileDownloadUrl: string

Detail description: The external download url of the media message is used for the developer to transparently transmit the media file to other users by filling in this URL when the developer uploads the media file to his own server.Required or not: If an external URL is sent, this parameter is mandatory on the sender end.

fileUID

fileUID
fileUID: string

Detail description: The unique ID of the media file. Required or not: The sender does not need to fill in, this value is generated by the SDK.

fileName

fileName
fileName: string

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

fileSize

fileSize
fileSize: number

Detail description: The size of the media file. Required or not: The sender does not need to fill in, this value is generated by the SDK.

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
message: string

The content of the text message.

type

type
type: ZIMMessageType.Text

ZIMCustomMessage

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
message: string

The content of the text message.

searchedContent

searchedContent
searchedContent: string

Description: The search content of the message.

subType

subType
subType: unsigned int

Description: 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
type: ZIMMessageType.Custom

ZIMCommandMessage

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
message: bytes

The content of the custom message.

type

type
type: ZIMMessageType.Command

ZIMBarrageMessage

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
message: string

Description: The content of the barrage message.

type

type
type: ZIMMessageType.Barrage

ZIMImageMessage

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
thumbnailDownloadUrl: string

Detail description: Thumbnail external download URL of the image file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users. Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

largeImageDownloadUrl

largeImageDownloadUrl
largeImageDownloadUrl: string

Detail description: large Image external download URL of the image file. When developers upload large Images to their own servers, the SDK can pass through this field to other users.Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

originalImageWidth

originalImageWidth
originalImageWidth: number

Detailed description: The width of the original image.

originalImageHeight

originalImageHeight
originalImageHeight: number

Detailed description: The height of the original image.

largeImageWidth

largeImageWidth
largeImageWidth: number

Detailed description: The width of the large image.

largeImageHeight

largeImageHeight
largeImageHeight: number

Detailed description: The height of the large image.

thumbnailWidth

thumbnailWidth
thumbnailWidth: number

Detailed description: The width of the thumbnail.

thumbnailHeight

thumbnailHeight
thumbnailHeight: number

Detailed description: The height of the thumbnail.

type

type
type: ZIMMessageType.Image

ZIMFileMessage

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
type: ZIMMessageType.File

ZIMAudioMessage

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
audioDuration: unsigned int

Detail 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
type: ZIMMessageType.Audio

ZIMVideoMessage

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
videoDuration: unsigned int

Detail 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
videoFirstFrameDownloadUrl: string

Detail description: Video first frame external download URL of the video file. When developers upload thumbnails to their own servers, the SDK can pass through this field to other users. Required or not: optional on the sender side, this field will only take effect when fileDownloadUrl is filled in.

videoFirstFrameWidth

videoFirstFrameWidth
videoFirstFrameWidth: number

Detailed description: The width of the first frame of the video.

videoFirstFrameHeight

videoFirstFrameHeight
videoFirstFrameHeight: number

Detailed description: The height of the first frame of the video.

type

type
type: ZIMMessageType.Video

ZIMRevokeMessage

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

revokeType
revokeType: ZIMRevokeType

Detail description: revoke type.

revokeTimestamp

revokeTimestamp
revokeTimestamp: number

Detail description: revoke timestamp.

operatedUserID

operatedUserID
operatedUserID: string

Detail description: operated user ID.

originalMessageType

originalMessageType
originalMessageType: ZIMMessageType

Description: original message type

originalTextMessageContent

originalTextMessageContent
originalTextMessageContent: string

Detail description: original text message content, if the message to be revoked is not a text message, this field is empty.

revokeExtendedData

revokeExtendedData
revokeExtendedData: string

Detail description: revoke extended data.

revokeStatus

revokeStatus

Detail description: revoke status.

type

type
type: ZIMMessageType.Revoke

ZIMCombineMessage

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
title: string

Detail description: Combine message title.

summary

summary
summary: string

Detail description: The summary of combine message.

combineID

combineID
combineID: string

Detail description: Combine ID, internal used

messageList

messageList
messageList: ZIMMessage[]

List of child messages

type

type
type: ZIMMessageType.Combine

ZIMTipsMessage

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

event

Detail description: Tips event type.

operatedUser

operatedUser
operatedUser: ZIMUserInfo

Detail description: Operated user information.

targetUserList

targetUserList
targetUserList: ZIMUserInfo[]

Detail description: Target user list.

changeInfo

changeInfo

Detail description: Change information.

type

type
type: ZIMMessageType.Tips

ZIMMultipleMessage

Multiple message object.

Declared in ZIMDefines.ts

Properties

messageInfoList

messageInfoList
messageInfoList: ZIMMessageLiteInfo[]

Detail description: List of content in the multiple message.

failedIndexList

failedIndexList
failedIndexList: number[]

Detail description: List of failed index in the multiple message.

type

type
type: ZIMMessageType.Multiple

ZIMMessageRootRepliedInfo

Reply to the root message of the message tree.

Declared in ZIMDefines.ts

Properties

state

state

Description: Message replied state.

message

message
message: ZIMMessage

Description: Root message.

senderUserID

senderUserID
senderUserID: string

Description: Sender user ID of the root message.

sentTime

sentTime
sentTime: number

Description: Sent time of the root message.

repliedCount

repliedCount
repliedCount: number

Description: Root replied count.

ZIMMessageRootRepliedCountInfo

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

Declared in ZIMDefines.ts

Properties

messageID

messageID
messageID: string

Description: Message ID.

conversationID

conversationID
conversationID: string

Description: Conversation ID.

conversationType

conversationType
conversationType: ZIMConversationType

Description: Conversation type.

count

count
count: number

Description: Root replied count.

ZIMMessageMentionedInfo

message mention information.

Declared in ZIMDefines.ts

  • message mention information.

Properties

messageID

messageID
messageID: string

Description: 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
messageSeq: number

Description: 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
fromUserID: string

Description: From which user. Required: Developers do not need to fill in.

type

type

Details 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
conversationID: string

Description: The ID of conversation.

conversationType

conversationType
conversationType: ZIMConversationType

Description: The type of conversation.

isOfflineMessage

isOfflineMessage
isOfflineMessage: boolean

Description: 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
pushConfig: ZIMPushConfig

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

priority

priority

Enumeration value used to set message priority. Required: Must mandatory.

hasReceipt

hasReceipt
hasReceipt: boolean

Detailed 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
isNotifyMentionedUsers: boolean

Whether to send push notifications to mentioned users.

isRetrySend

isRetrySend
isRetrySend: boolean

Whether to resend the failed message.

disableUnreadMessageCount

disableUnreadMessageCount
disableUnreadMessageCount: boolean

When 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
isAllowMultipleMessagePartialFailed: boolean

Whether 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
nextMessage: ZIMMessage

Description: Query the anchor point of the message. Required: This parameter is not required for the first query but is required for subsequent paging queries.

count

count
count: unsigned int

Description: Number of query messages. Required: not required.

reverse

reverse
reverse: boolean

Description: Indicates whether the query is in reverse order. Required: not required. Default value: false.

mode

mode

Description: 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
pushConfig: ZIMPushConfig

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

revokeExtendedData

revokeExtendedData
revokeExtendedData: string

Description: revoking additional messages. Required: Not required.

ZIMMessageDeleteConfig

Delete message configuration.

Details

Delete configurations related to messages.

Declared in ZIMDefines.ts

Properties

isAlsoDeleteServerMessage

isAlsoDeleteServerMessage
isAlsoDeleteServerMessage: boolean

Description: 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
onMessageAttached: ZIMMessageAttachedResult

Detail 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
onMediaUploadingProgress: ZIMMediaUploadingProgress

Description: Media file upload progress.

onMultipleMediaUploadingProgress

onMultipleMediaUploadingProgress
onMultipleMediaUploadingProgress: ZIMMultipleMediaUploadingProgress

Description: 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
onMessageAttached: ZIMMessageAttachedResult

Detail 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
onMediaUploadingProgress: ZIMMediaUploadingProgress

Callback for media upload progress.

ZIMMessageReceiptInfo

receipt information.

Details

receipt information.

Declared in ZIMDefines.ts

Properties

status

status

Detail description: receipt status.

messageID

messageID
messageID: string

Detailed 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
conversationID: string

Session ID.

conversationType

conversationType
conversationType: ZIMConversationType

Session type.

readMemberCount

readMemberCount
readMemberCount: unsigned int

Description: Number of read members.

unreadMemberCount

unreadMemberCount
unreadMemberCount: unsigned int

Description: Number of unread members.

deliveredMemberCount

deliveredMemberCount
deliveredMemberCount: unsigned int

Description: Number of delivered members.

isSelfOperated

isSelfOperated
isSelfOperated: boolean

Description: Whether it is self-operated by multi-terminal.

readTime

readTime
readTime: number

Description: 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
nextFlag: unsigned long long

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

count

count
count: unsigned int

Description: 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
reactionType: string

Description: 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

status

message sent status.

message

message
message: ZIMMessage

ZIMMessage.

reason

reason
reason: string

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

ZIMMessageSearchConfig

Message search configuration.

Details

Message search configuration.

Declared in ZIMDefines.ts

Properties

nextMessage

nextMessage
nextMessage: ZIMMessage

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

count

count
count: unsigned int

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

order

order

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

keywords

keywords
keywords: string[]

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

messageTypes

messageTypes
messageTypes: ZIMMessageType[]

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

subMessageTypes

subMessageTypes
subMessageTypes: 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
senderUserIDs: string[]

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

startTime

startTime
startTime: number

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

endTime

endTime
endTime: number

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

ZIMMessageRepliedListQueryConfig

Configuration for querying reply message list.

Details

Configuration class for querying the replied message list.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: number

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

count

count
count: number

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

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
disableAutoReplace: boolean

When 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

type

Tips message additional information type.

ZIMTipsMessageGroupChangeInfo

Tips Additional information about change events related to the message group.

Details

Tips Additional information about change events related to the message group.

Declared in ZIMDefines.ts

Properties

groupDataFlag

groupDataFlag
groupDataFlag: number

If there are multiple changes in the group name, group avatar, and group announcement, you need to know which ones have changed based on the value of this field. Among them, 0b0001 is the group name, 0b0010 is the group notice, and 0b0100 is the group avatar.

groupName

groupName
groupName: string

If the group name is changed, the changed value will be displayed here.

groupNotice

groupNotice
groupNotice: string

If the group notice is changed, the changed value will be displayed here.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

If the group avatar url is changed, the changed value will be displayed here.

groupMutedInfo

groupMutedInfo
groupMutedInfo: ZIMGroupMuteInfo

If the group mute info is changed, the changed value will be displayed here.

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
memberRole: number

If a group member's role changes, the changed role will be displayed here.

muteExpiredTime

muteExpiredTime
muteExpiredTime: number

If the group member's muting expired time changes, the new muting expired time will be displayed here.

groupNewOwner

groupNewOwner

Detailed 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
isPinned: boolean

Describes 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

pinStatus

Message pin status

message

message
message: ZIMMessage

The message object whose pin status changed.

ZIMMessageReactionChangeInfo

message reaction change information.

Details

A class that describes reaction change information.

Declared in ZIMDefines.ts

Properties

message

message
message: ZIMMessage

Description: The message object containing updated reaction information, which can be used to directly replace the old data held by the developer.

userChangeInfoList

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
conversationID: string

Conversation ID.

type

type

Conversation type.

conversationName

conversationName
conversationName: string

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

conversationAvatarUrl

conversationAvatarUrl
conversationAvatarUrl: string

Conversation 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
conversationAlias: string

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

notificationStatus

notificationStatus

Conversation notification status.

unreadMessageCount

unreadMessageCount
unreadMessageCount: number

Unread message count of the conversation.

lastMessage

lastMessage
lastMessage: ZIMMessage

The last message in the conversation.

orderKey

orderKey
orderKey: number

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

isPinned

isPinned
isPinned: boolean

Whether the conversation is pinned.

pinnedTime

pinnedTime
pinnedTime: number

Description: The timestamp of conversation pinned.

mentionedInfoList

mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]

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

draft

draft
draft: string

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

marks

marks
marks: number[]

Describes all the existing marks for the conversation.

readMessageSeq

readMessageSeq
readMessageSeq: number

Conversation read message sequence number.

isConversationDisabled

isConversationDisabled
isConversationDisabled: boolean

Whether the conversation is unavailable.

selfMutedExpiredTime

selfMutedExpiredTime
selfMutedExpiredTime: number

The expiration timestamp of the self-mute for this conversation.

messageDestructDuration

messageDestructDuration
messageDestructDuration: number

The 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
conversationID: string

Conversation ID. For single chat, the conversation ID is the other user ID. For group chat, the conversation ID is the group ID.

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type

ZIMGroupConversation

Group session object, extend from ZIMGroupConversation.

Details

Group session object, extend from ZIMGroupConversation.

Declared in ZIMDefines.ts

Properties

isDisabled

isDisabled
isDisabled: boolean

Whether the group session is unavailable.

mutedExpiredTime

mutedExpiredTime
mutedExpiredTime: number

The 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

nextConversation
nextConversation: ZIMConversation

Session that needs to be queried.

count

count
count: unsigned int

The 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

conversationTypes
conversationTypes: ZIMConversationType[]

Conversation type list

marks

marks
marks: number[]

Conversation mark list

isOnlyUnreadConversation

isOnlyUnreadConversation
isOnlyUnreadConversation: boolean

Whether to query only unread conversations

pinnedFilter

pinnedFilter

Conversation pinned filter

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

conversationTypes
conversationTypes: ZIMConversationType[]

Conversation type list

marks

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
isAlsoDeleteServerConversation: boolean

Whether to delete server conversations at the same time

ZIMConversationChangeInfo

Conversation change information

Details

Contains information after session changes.

Declared in ZIMDefines.ts

Properties

event

action

action

Conversation change action

conversation

conversation
conversation: ZIMConversation

Changed conversation

ZIMConversationSearchConfig

Conversation search configuration.

Details

Conversation search configuration.

Declared in ZIMDefines.ts

Properties

mode

mode

Conversation search mode.

nextFlag

nextFlag
nextFlag: unsigned int

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

totalConversationCount

totalConversationCount
totalConversationCount: unsigned int

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

keywords

keywords
keywords: string[]

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

conversationMessageCount

conversationMessageCount
conversationMessageCount: unsigned int

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

messageTypes

messageTypes
messageTypes: ZIMMessageType[]

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

subMessageTypes

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
senderUserIDs: string[]

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

startTime

startTime
startTime: number

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

endTime

endTime
endTime: number

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

ZIMConversationSearchInfo

Conversation search result

Details

Information class for conversation search results.

Declared in ZIMDefines.ts

Properties

conversationID

conversationID
conversationID: string

The conversation ID of the local message to be search.

conversationType

conversationType
conversationType: ZIMConversationType

conversation type.

conversation

conversation
conversation: ZIMConversation

Conversation object.

totalMessageCount

totalMessageCount
totalMessageCount: unsigned int

Total message count.

messageList

messageList
messageList: ZIMMessage[]

Search results of messages.

ZIMRoomInfo

Room information object.

Details

Identifies a unique room.

Declared in ZIMDefines.ts

Properties

roomID

roomID
roomID: string

Room ID. a string with a maximum length of 128 bytes. It is customized by the developer and supports only digits, English characters, , and '!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', ''.

roomName

roomName
roomName: string

Room name, It is customized by the developer .a string with a maximum length of 64 bytes or less.

ZIMRoomFullInfo

The room details object.

Details

Identifies the detailed information of a room.

Declared in ZIMDefines.ts

Properties

baseInfo

baseInfo
baseInfo: ZIMRoomInfo

Room base information

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
nextFlag: string

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

count

count
count: unsigned int

How many messages are retrieved in one query.

ZIMRoomAdvancedConfig

Room advanced configuration

Details

Room‘s advanced config.

Declared in ZIMDefines.ts

Properties

roomAttributes

roomAttributes
roomAttributes: Map<string, string>

Room attributes of a room.

roomDestroyDelayTime

roomDestroyDelayTime
roomDestroyDelayTime: unsigned int

Room 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
isForce: boolean

Whether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.

isDeleteAfterOwnerLeft

isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: boolean

Room attributes are automatically deleted after the owner leaves the room.

isUpdateOwner

isUpdateOwner
isUpdateOwner: boolean

Whether 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
isForce: boolean

Whether the operation is mandatory, that is, the property of the room whose owner is another user can be modified.

isDeleteAfterOwnerLeft

isDeleteAfterOwnerLeft
isDeleteAfterOwnerLeft: boolean

Room attributes are automatically deleted after the owner leaves the room.

isUpdateOwner

isUpdateOwner
isUpdateOwner: boolean

Whether 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
isForce: boolean

Whether 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

Behavioral information of room attribute change notification.

roomAttributes

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
userID: string

Detail description: User ID.

attributes

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

Detailed description: room user attribute information.

errorKeys

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

Detailed 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
isDeleteAfterOwnerLeft: boolean

Default: true.

ZIMRoomMemberAttributesQueryConfig

Room member attribute query configuration

Details

Detailed description: room user attribute query configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: string

Detail description: Query anchor for room user properties.

count

count
count: unsigned int

count.

ZIMRoomOperatedInfo

Room operation information.

Details

Detailed description: Room operation information.

Declared in ZIMDefines.ts

Properties

userID

userID
userID: string

Detail description: UserID of the operator.

ZIMGroupInfo

group information.

Details

group information.

Declared in ZIMDefines.ts

Properties

groupID

groupID
groupID: string

groupID.

groupName

groupName
groupName: string

Group name.

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

Use 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

mode

Group mute mode.

expiredTime

expiredTime
expiredTime: number

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

roles

roles
roles: number[]

Detail description: Role list muted in the group.

ZIMGroupVerifyInfo

Verification mode for joining the group.

Details

Group verification information class, describing the group entry verification mode.

Declared in ZIMDefines.ts

Properties

joinMode

joinMode

Verification mode for joining the group.

inviteMode

inviteMode
inviteMode: ZIMGroupInviteMode

Verification mode for invite to the group.

beInviteMode

beInviteMode
beInviteMode: ZIMGroupBeInviteMode

Verification mode for being invited to the group.

ZIMGroupFullInfo

complete group information.

Details

complete group information.

Declared in ZIMDefines.ts

Properties

baseInfo

baseInfo
baseInfo: ZIMGroupInfo

basic group information.

groupNotice

groupNotice
groupNotice: string

Group of announcement.

groupAttributes

groupAttributes
groupAttributes: Map<string, string>

group properties.

groupAlias

groupAlias
groupAlias: string

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

notificationStatus

notificationStatus

group message notification status.

mutedInfo

mutedInfo
mutedInfo: ZIMGroupMuteInfo

Group mute info.

createTime

createTime
createTime: number

The timestamp of the server when the group was created.

maxMemberCount

maxMemberCount
maxMemberCount: unsigned int

The maximum number of group members.

verifyInfo

verifyInfo
verifyInfo: ZIMGroupVerifyInfo

Verification mode for joining the group.

ZIMGroup

complete group information for group list.

Details

complete group information for group list.

Declared in ZIMDefines.ts

Properties

baseInfo

baseInfo
baseInfo: ZIMGroupInfo

basic group information.

groupAlias

groupAlias
groupAlias: string

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

notificationStatus

notificationStatus

group message notification status.

ZIMGroupMemberSimpleInfo

Group member simple information.

Details

Simple information class for group members.

Declared in ZIMDefines.ts

Properties

memberNickname

memberNickname
memberNickname: string

Group member nickname.

memberRole

memberRole
memberRole: number

group 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
enterTime: number

The timestamp of the server when joining the group.

enterType

enterType

Group entry type.

operatedUser

operatedUser

Group entry type.

ZIMGroupMemberInfo

Group member information.

Details

Group member information.

Declared in ZIMDefines.ts

Properties

memberNickname

memberNickname
memberNickname: string

Group member nickname.

memberRole

memberRole
memberRole: number

group role.

muteExpiredTime

muteExpiredTime
muteExpiredTime: number

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

groupEnterInfo

groupEnterInfo
groupEnterInfo: ZIMGroupEnterInfo

Information about group members when they join the group.

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
userID: string

The operator's user ID.

userName

userName
userName: string

The operator's username.

memberNickname

memberNickname
memberNickname: string

The operator's group member nickname.

memberRole

memberRole
memberRole: number

The operator's group member role.

ZIMGroupMemberQueryConfig

group member query configuration.

Details

group member query configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

nextFlag.

count

count
count: unsigned int

count. 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
groupNotice: string

group notice.

groupAttributes

groupAttributes
groupAttributes: Map<string, string>

Group properties, up to 10 can be configured..

maxMemberCount

maxMemberCount
maxMemberCount: unsigned int

The maximum number of group members.

joinMode

joinMode

Verification mode for joining the group.

inviteMode

inviteMode
inviteMode: ZIMGroupInviteMode

Verification mode for invite to the group.

beInviteMode

beInviteMode
beInviteMode: ZIMGroupBeInviteMode

Verification mode for being invited to the group.

ZIMGroupAttributesUpdateInfo

Group attribute update information.

Details

Group attribute update information.

Declared in ZIMDefines.ts

Properties

action

action

Group attribute update action.

groupAttributes

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
nextFlag: unsigned int

The pagination cursor. Set to 0 for the first query, then use the nextFlag from the [ZIMGroupMessageReceiptMemberListQueriedCallback] callback for subsequent pages.

count

count
count: unsigned int

The number of group members to query.

ZIMGroupMessageReceiptMemberListQueryConfig

Group message receipt member query configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

The pagination cursor. Set to 0 for the first query, then use the nextFlag from the [ZIMGroupMessageReceiptMemberListQueriedCallback] callback for subsequent pages.

filterType

filterType

Filter type for the receipt member list to query.

ZIMGroupSearchConfig

Group search configuration.

Details

Group search configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

The flag used to search groups.

count

count
count: unsigned int

count.

keywords

keywords
keywords: string[]

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

isAlsoMatchGroupMemberUserName

isAlsoMatchGroupMemberUserName
isAlsoMatchGroupMemberUserName: boolean

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

isAlsoMatchGroupMemberNickname

isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: boolean

Whether 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

groupInfo
groupInfo: ZIMGroupInfo

group info.

userList

userList
userList: ZIMGroupMemberInfo[]

Group member information.

ZIMGroupMemberSearchConfig

group member search configuration.

Details

group member search configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

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

count

count
count: unsigned int

count.

keywords

keywords
keywords: string[]

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

isAlsoMatchGroupMemberNickname

isAlsoMatchGroupMemberNickname
isAlsoMatchGroupMemberNickname: boolean

Whether 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

mode

Group mute mode.

duration

duration
duration: number

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

roles

roles
roles: number[]

Group role list.

ZIMGroupMemberMuteConfig

Group members mute configuration.

Details

Group members mute configuration.

Declared in ZIMDefines.ts

Properties

duration

duration
duration: number

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

ZIMGroupMemberMutedListQueryConfig

Group muted member list query configuration.

Details

Group muted member list query configuration.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned long long

nextFlag.

count

count
count: unsigned int

count.

ZIMGroupApplicationInfo

Group application information.

Details

Group application information class, containing details of join or invite applications.

Declared in ZIMDefines.ts

Properties

type

type

Group application type.

state

state

Group application state.

groupInfo

groupInfo
groupInfo: ZIMGroupInfo

Group information for applying to join the group.

applyUser

applyUser
applyUser: ZIMUserInfo

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

createTime

createTime
createTime: number

Group application create time.

updateTime

updateTime
updateTime: number

Group application status update time.

wording

wording
wording: string

The wording of group application information.

operatedUser

operatedUser

The 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
wording: string

Postscript to the application operation.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
wording: string

Postscript to the application operation.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
nextFlag: unsigned int

nextFlag.

count

count
count: unsigned int

count. 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
nextFlag: number

nextFlag.

userIDs

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
userID: string

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

state

state

user status.

extendedData

extendedData
extendedData: string

Call the additional information in user information.

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
timeout: unsigned int

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

mode

mode

Call invitation mode configuration.

extendedData

extendedData
extendedData: string

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

enableNotReceivedCheck

enableNotReceivedCheck
enableNotReceivedCheck: boolean

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

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMCallingInviteConfig

Behavior property set by quit a call invitation.

Details

Behavior property set by quit a call invitation.

Declared in ZIMDefines.ts

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
extendedData: string

Extended 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
extendedData: string

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

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
extendedData: string

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

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
extendedData: string

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

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
extendedData: string

Extended 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
extendedData: string

Additional 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
count: unsigned int

The query number is limited to up to 100.

nextFlag

nextFlag
nextFlag: number

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

ZIMCallInfo

Call invitation information.

Details

Call invitation information.

Declared in ZIMDefines.ts

Properties

callID

callID
callID: string

Call invite ID.

caller

caller
caller: string

Call invitation initiator ID.

inviter

inviter
inviter: string

The inviter ID of the call invitation.

createTime

createTime
createTime: number

Call invites to create a timestamp.

endTime

endTime
endTime: number

Call invitation end time.

state

state

Call invitation status.

mode

mode

Call invitation mode.

extendedData

extendedData
extendedData: string

Create a call invitation additional information.

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

The list of call member.

ZIMCallUserStateChangeInfo

Call member status change information.

Details

Call member status change information.

Declared in ZIMDefines.ts

Properties

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

List of call members whose status changes.

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
nextFlag: unsigned int

nextFlag.

count

count
count: unsigned int

count.

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
friendAlias: string

Alias of friend.

friendAttributes

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
wording: string

Add 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

type

Delete type.

ZIMFriendListQueryConfig

Query the configuration of the friend list.

Details

Query the configuration of the friend list.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

The index of the current query anchor point.

count

count
count: unsigned int

Total number of current queries.

ZIMFriendSearchConfig

Friend search configuration.

Details

Configuration class for searching friends.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: unsigned int

nextFlag.

count

count
count: unsigned int

count.

keywords

keywords
keywords: string[]

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

isAlsoMatchFriendAlias

isAlsoMatchFriendAlias
isAlsoMatchFriendAlias: boolean

Whether 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

type

Check type.

ZIMFriendRelationInfo

Friend relationship information.

Details

Detailed description: Friend relationship information.

Declared in ZIMDefines.ts

Properties

type

type

Friend relationship type.

userID

userID
userID: string

user ID.

ZIMFriendInfo

Friend information.

Details

Detailed description: Friend information.

Declared in ZIMDefines.ts

Properties

friendAlias

friendAlias
friendAlias: string

The alias of friend.

friendAttributes

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
createTime: number

Friend add time.

wording

wording
wording: string

Add 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
wording: string

Add a friend postscript.

friendAlias

friendAlias
friendAlias: string

Alias of friend.

friendAttributes

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

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMFriendApplicationAcceptConfig

Behavior attributes for accepting friend requests.

Details

Behavior attributes for accepting friend requests.

Declared in ZIMDefines.ts

Properties

friendAlias

friendAlias
friendAlias: string

friend alias.

friendAttributes

friendAttributes
friendAttributes: Map<string, string>

friend attributes.

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

ZIMFriendApplicationRejectConfig

Behavior attributes for rejecting friend application.

Details

Behavior attributes for rejecting friend application.

Declared in ZIMDefines.ts

Properties

pushConfig

pushConfig
pushConfig: ZIMPushConfig

Offline push configuration.

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
nextFlag: unsigned int

The index of the current query anchor point.

count

count
count: unsigned int

Total number of current queries.

ZIMFriendApplicationInfo

Friend application information.

Details

Detailed description: Friend application information.

Declared in ZIMDefines.ts

Properties

type

type

Friend application type.

state

state

Friend application state.

applyUser

applyUser
applyUser: ZIMUserInfo

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

wording

wording
wording: string

The wording of friend application information.

createTime

createTime
createTime: number

Friend add time.

updateTime

updateTime
updateTime: number

Friend application status update time.

ZIMCommunityInfo

Basic community information.

Details

Community basic information class.

Declared in ZIMDefines.ts

Properties

communityID

communityID
communityID: string

The community ID.

communityName

communityName
communityName: string

The community name.

communityAvatarUrl

communityAvatarUrl
communityAvatarUrl: string

The URL of the community avatar.

ZIMCommunity

Community object.

Details

Community information class, containing basic attributes of a community.

Declared in ZIMDefines.ts

Properties

baseInfo

baseInfo

The basic information of the community.

totalUnreadMessageCount

totalUnreadMessageCount
totalUnreadMessageCount: unsigned int

The 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

baseInfo

The basic information of the community.

communityNotice

communityNotice
communityNotice: string

The community notice.

communityAttributes

communityAttributes
communityAttributes: Map<string, string>

The community attributes.

createTime

createTime
createTime: number

The time when the community was created.

creatorUserID

creatorUserID
creatorUserID: string

The user ID of the community creator.

currentMemberCount

currentMemberCount
currentMemberCount: unsigned int

The current number of community members.

notificationStatus

notificationStatus

The 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
communityNotice: string

The community notice to set when creating the community.

communityAttributes

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
nextFlag: number

The 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

action

Conmmunity change event

community

community
community: ZIMCommunity

Changed community

ZIMCommunityMemberListQueryConfig

Community member list query configuration

Details

Configuration class for querying the community member list.

Declared in ZIMDefines.ts

Properties

nextFlag

nextFlag
nextFlag: number

The pagination flag for querying the next page.

channelID

channelID
channelID: string

The channel ID to query members from.

isMutedMember

isMutedMember
isMutedMember: boolean

Whether to query only muted members.

ZIMCommunityFullInfoUpdateInfo

Community full info update information

Details

Community full information update notification class.

Declared in ZIMDefines.ts

Properties

communityInfo

communityInfo
communityInfo: ZIMCommunityFullInfo

Changed community full info

ZIMCommunityMemberEnterInfo

Community member enter information

Details

Information class for a member entering a community.

Declared in ZIMDefines.ts

Properties

enterTime

enterTime
enterTime: number

The time when the member entered the community.

enterType

enterType

The type of how the member entered the community.

operatedUserID

operatedUserID
operatedUserID: string

The 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

The mute type indicating which level the member is muted at.

channelID

channelID
channelID: string

The channel ID of the mute. Empty means muted at the community level.

muteExpiredTime

muteExpiredTime
muteExpiredTime: number

The expiration time of the member's mute.

ZIMCommunityMemberInfo

Community member information

Details

Community member information class.

Declared in ZIMDefines.ts

Properties

memberRole

memberRole
memberRole: number

The role of the community member.

enterInfo

enterInfo

The information about how the member entered the community.

muteInfo

muteInfo

The mute information of the community member.

ZIMCommunityMemberSimpleInfo

Community member simple information

Details

Simple community member information class.

Declared in ZIMDefines.ts

Properties

memberRole

memberRole
memberRole: number

The 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

state

The current state of the community member.

action

action

The action type of the member state change.

memberInfo

memberInfo

Changed community member simple info

ZIMCommunityMemberInfoUpdateInfo

Community member full info update information

Details

Community member information update notification class.

Declared in ZIMDefines.ts

Properties

memberInfo

memberInfo

Changed community member info

ZIMCommunityChannelInfo

Basic community channel information.

Details

Community channel basic information class.

Declared in ZIMDefines.ts

Properties

channelID

channelID
channelID: string

The channel ID.

channelType

channelType

The type of the community channel.

channelName

channelName
channelName: string

The channel name.

channelAvatarUrl

channelAvatarUrl
channelAvatarUrl: string

The URL of the channel avatar.

communityID

communityID
communityID: string

The 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

mode

The mute mode of the community channel.

expiredTime

expiredTime
expiredTime: number

The expiration time of the channel mute.

roles

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

baseInfo

The basic information of the community channel.

conversationID

conversationID
conversationID: string

The conversation ID of the community channel.

channelAttributes

channelAttributes
channelAttributes: Map<string, string>

The community channel attributes.

notificationStatus

notificationStatus

The notification status of the community channel.

unreadMessageCount

unreadMessageCount
unreadMessageCount: number

The number of unread messages in the community channel.

lastMessage

lastMessage
lastMessage: ZIMMessage

The last message in the community channel.

mentionedInfoList

mentionedInfoList
mentionedInfoList: ZIMMessageMentionedInfo[]

The list of mention information in the community channel.

selfMutedExpiredTime

selfMutedExpiredTime
selfMutedExpiredTime: number

The expiration time of the local user's mute in the channel.

draft

draft
draft: string

The 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

baseInfo

The basic information of the community channel.

createTime

createTime
createTime: number

The time when the channel was created.

creatorUserID

creatorUserID
creatorUserID: string

The user ID of the channel creator.

channelNotice

channelNotice
channelNotice: string

The community channel notice.

channelAttributes

channelAttributes
channelAttributes: Map<string, string>

The community channel attributes.

currentMemberCount

currentMemberCount
currentMemberCount: number

The current number of channel members.

muteInfo

muteInfo

The mute information of the community channel.

ZIMCommunityChannelCreateConfig

Configuration for creating a community channel.

Details

Configuration class for creating a community channel.

Declared in ZIMDefines.ts

Properties

channelNotice

channelNotice
channelNotice: string

The channel notice to set when creating the channel.

channelAttributes

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
nextFlag: number

The 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

action

The action type of the channel list change.

channel

channel

The changed community channel information.

ZIMCommunityChannelFullInfoUpdateInfo

Community channel full info update information

Details

Community channel full information update notification class.

Declared in ZIMDefines.ts

Properties

channelInfo

channelInfo

Changed community channel full info

ZIMCommunityChannelMuteConfig

Community channel mute configuration

Details

Configuration class for muting a community channel.

Declared in ZIMDefines.ts

Properties

mode

mode

The mute mode for the community channel.

roles

roles
roles: number[]

The roles to mute. Empty means muting all roles.

duration

duration
duration: number

The 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
duration: number

The mute duration in seconds. 0 means unmute.

channelID

channelID
channelID: string

The 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

state

Connection state

event

event

Connection event

extendedData

extendedData
extendedData: string

Extra 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
second: unsigned int

The remaining seconds before the token expires.

ZIMUserInfoUpdatedEventResult

Callback for user information update.

Declared in ZIMEventHandler.ts

Properties

info

info

User info

ZIMUserStatusUpdatedEventResult

User status change notification.

Declared in ZIMEventHandler.ts

Properties

userStatusList

userStatusList
userStatusList: ZIMUserStatus[]

User status list

ZIMUserRuleUpdatedEventResult

Callback of user rule changes.

Declared in ZIMEventHandler.ts

Properties

userRule

userRule
userRule: ZIMUserRule

User rule

ZIMConversationChangedEventResult

Received notification callback for session update.

Declared in ZIMEventHandler.ts

Properties

infoList

infoList

Conversation change info list

ZIMConversationsAllDeletedEventResult

Triggered when all conversations are deleted.

Declared in ZIMEventHandler.ts

Properties

count

count
count: number

Conversation count

ZIMConversationSyncStateChangedEventResult

Received notification callback for synchronizing conv list from server.

Declared in ZIMEventHandler.ts

Properties

state

state

Conversation synchronization state

ZIMConversationTotalUnreadMessageCountUpdatedEventResult

Notification callback for session total unread updates.

Declared in ZIMEventHandler.ts

Properties

totalUnreadMessageCount

totalUnreadMessageCount
totalUnreadMessageCount: number

Total unread message count

ZIMConversationMessageReceiptChangedEventResult

Callback for notifications of read updates for sessions that receive receipts.

Declared in ZIMEventHandler.ts

Properties

infos

infos

Conversation message receipt change info list

ZIMMessageReceiptChangedEventResult

The notification callback for the read update of the message that received the receipt.

Declared in ZIMEventHandler.ts

Properties

infos

infos

Message receipt change info list

ZIMMessageRevokeReceivedEventResult

The callback for receiving revoke message.

Declared in ZIMEventHandler.ts

Properties

messageList

messageList
messageList: ZIMRevokeMessage[]

Message revoke list

ZIMMessageReactionsChangedEventResult

The callback of the reactions change.

Declared in ZIMEventHandler.ts

Properties

reactions

reactions
reactions: ZIMMessageReaction[]

Message reaction change info list

changeInfoList

changeInfoList

Message reaction change info list

ZIMMessageRepliedCountChangedEventResult

Reply to the event that the number of message trees has changed.

Declared in ZIMEventHandler.ts

Properties

infos

infos

Message root reply count change info list

ZIMMessageRepliedInfoChangedEventResult

The reply information of a reply message is changed.

Declared in ZIMEventHandler.ts

Properties

messageList

messageList
messageList: ZIMMessage[]

Message replied info change info list

ZIMMessageDeletedEventResult

Callback when the message is deleted.

Declared in ZIMEventHandler.ts

Properties

conversationID

conversationID
conversationID: string

Conversation ID

conversationType

conversationType
conversationType: ZIMConversationType

Conversation type

messageDeleteType

messageDeleteType
messageDeleteType: ZIMMessageDeleteType

Message delete type

messageList

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

infos

Message sent status change info list

ZIMBroadcastMessageReceivedEventResult

The callback of the broadcast message received by all employees.

Declared in ZIMEventHandler.ts

Properties

message

message
message: ZIMMessage

Broadcast message

ZIMConversationMessageReceivedEventResult

The callback for receiving group message.

Declared in ZIMEventHandler.ts

Properties

messageList

messageList
messageList: ZIMMessage[]

Conversation message list

fromConversationID

fromConversationID
fromConversationID: string

Message source conversation ID

info

info

Message received info

ZIMMessageReceivedEventResult

Triggered when messages are received.

Declared in ZIMEventHandler.ts

Properties

messageList

messageList
messageList: ZIMMessage[]

message list

receivedInfo

receivedInfo

Message received info

ZIMMessageEditedEventResult

The message edited event callback result.

Declared in ZIMEventHandler.ts

Properties

messageList

messageList
messageList: ZIMMessage[]

The message list.

ZIMMessagePinStatusChangedEventResult

The message pinned event callback result.

Declared in ZIMEventHandler.ts

Properties

infos

infos

The message pin status change info list.

ZIMRoomStateChangedEventResult

event callback when the room connection status changes.

Declared in ZIMEventHandler.ts

Properties

roomID

roomID
roomID: string

Room ID

state

state

Room state

event

event

Room state change event

extendedData

extendedData
extendedData: string

Extended data

ZIMRoomMemberChangedEventResult

Triggered when room members join or leave.

Declared in ZIMEventHandler.ts

Properties

roomID

roomID
roomID: string

Room ID

memberList

memberList
memberList: ZIMUserInfo[]

Room member list

ZIMRoomAttributesUpdatedEventResult

Notification of room property changes.

Declared in ZIMEventHandler.ts

Properties

roomID

roomID
roomID: string

Room ID

infos

infos

Room attribute change info list

ZIMRoomMemberAttributesUpdatedEventResult

Room user property update callback.

Declared in ZIMEventHandler.ts

Properties

roomID

roomID
roomID: string

Room ID

infos

infos

Room member attribute change info list

operatedInfo

operatedInfo
operatedInfo: ZIMRoomOperatedInfo

Operated info

ZIMGroupStateChangedEventResult

Group state change notification callback.

Declared in ZIMEventHandler.ts

Properties

state

state

Group state

event

event

Group state change event

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

groupInfo

groupInfo
groupInfo: ZIMGroupFullInfo

Group info

ZIMGroupNameUpdatedEventResult

Group name update notification callback.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

groupName

groupName
groupName: string

Group name

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupAvatarUrlUpdatedEventResult

Group avatar URL update notification callback.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

groupAvatarUrl

groupAvatarUrl
groupAvatarUrl: string

Group avatar URL

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupNoticeUpdatedEventResult

Notification callback for group announcement updates.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

groupNotice

groupNotice
groupNotice: string

Group notice

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupAliasUpdatedEventResult

Group alias update notification callback.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

groupAlias

groupAlias
groupAlias: string

Group alias

operatedUserID

operatedUserID
operatedUserID: string

Operated user ID

ZIMGroupAttributesUpdatedEventResult

Group property update attributes callback.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

infoList

infoList

Group attribute change info list

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupMutedInfoUpdatedEventResult

Notification callback for group mute info updates.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

mutedInfo

mutedInfo
mutedInfo: ZIMGroupMuteInfo

Group mute info

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupVerifyInfoUpdatedEventResult

Notification callback for group verification mode update.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

verifyInfo

verifyInfo
verifyInfo: ZIMGroupVerifyInfo

Group verify info

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupApplicationListChangedEventResult

This method will be called back when the group application list changes.

Declared in ZIMEventHandler.ts

Properties

action

action

Group application list change action

applicationList

applicationList
applicationList: ZIMGroupApplicationInfo[]

Group application list

ZIMGroupApplicationUpdatedEventResult

This method will be called back when the group application list changes.

Declared in ZIMEventHandler.ts

Properties

applicationList

applicationList
applicationList: ZIMGroupApplicationInfo[]

Group application list

ZIMGroupMemberStateChangedEventResult

Group member state change notification callback.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

state

state

Group member state

event

event

Group member state change event

userList

userList
userList: ZIMGroupMemberInfo[]

Group member list

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMGroupMemberInfoUpdatedEventResult

Group member basic information change notification.

Declared in ZIMEventHandler.ts

Properties

groupID

groupID
groupID: string

Group ID

userList

userList
userList: ZIMGroupMemberInfo[]

Group member list

operatedInfo

operatedInfo
operatedInfo: ZIMGroupOperatedInfo

Operated info

ZIMCallInvitationCreatedEventResult

The notification callback for the call invitation created by the caller.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

mode

mode

Call mode

caller

caller
caller: string

Caller user ID

extendedData

extendedData
extendedData: string

Extended data

timeout

timeout
timeout: number

Call timeout

createTime

createTime
createTime: number

Call create time

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

Call user list

ZIMCallInvitationReceivedEventResult

The notification callback for the call invitation received by the invitee.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

mode

mode

Call mode

caller

caller
caller: string

Caller user ID

inviter

inviter
inviter: string

Inviter user ID

extendedData

extendedData
extendedData: string

Extended data

timeout

timeout
timeout: number

Call timeout

createTime

createTime
createTime: number

Call create time

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

Call user list

ZIMCallInvitationCancelledEventResult

The notification callback received by the invitee to cancel the invitation.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

mode

mode

Call invitation mode.

inviter

inviter
inviter: string

Inviter user ID

extendedData

extendedData
extendedData: string

Extended data

ZIMCallInvitationTimeoutEventResult

Callback for notification of called call invitation timeout.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

mode

mode

Call mode

ZIMCallInvitationEndedEventResult

Callback for notification of caller call invitation ended.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

mode

mode

Call mode

caller

caller
caller: string

Caller user ID

operatedUserID

operatedUserID
operatedUserID: string

Operated user ID

extendedData

extendedData
extendedData: string

Extended data

endTime

endTime
endTime: number

Call end time

ZIMCallUserStateChangedEventResult

Call the notification of the user status in the invitation invitation.

Declared in ZIMEventHandler.ts

Properties

callID

callID
callID: string

Call ID

callUserList

callUserList
callUserList: ZIMCallUserInfo[]

Call user list

ZIMBlacklistChangedEventResult

This method will be called back when the blacklist is updated or changes occur.

Declared in ZIMEventHandler.ts

Properties

userList

userList
userList: ZIMUserInfo[]

Blacklist user list

action

action

Action type

ZIMFriendListChangedEventResult

This method will be called back when the friend list is updated or changes occur.

Declared in ZIMEventHandler.ts

Properties

friendList

friendList
friendList: ZIMFriendInfo[]

Friend list

action

action

Action type

ZIMFriendInfoUpdatedEventResult

This callback will be triggered when there is an update in the friend information.

Declared in ZIMEventHandler.ts

Properties

friendList

friendList
friendList: ZIMFriendInfo[]

Friend info list

ZIMFriendApplicationListChangedEventResult

Friend application list change event callback.

Declared in ZIMEventHandler.ts

Properties

applicationList

applicationList
applicationList: ZIMFriendApplicationInfo[]

Friend application list

action

action

Action type

ZIMFriendApplicationUpdatedEventResult

The current method will be called when there is an update in the friend request list.

Declared in ZIMEventHandler.ts

Properties

applicationList

applicationList
applicationList: ZIMFriendApplicationInfo[]

Friend application list

ZIMCommunityListChangedEventResult

Triggered when the community list changes.

Declared in ZIMEventHandler.ts

Properties

changeInfoList

changeInfoList
changeInfoList: ZIMCommunityChangeInfo[]

List of community change information.

ZIMCommunityInfoUpdatedEventResult

Triggered when community information is updated.

Declared in ZIMEventHandler.ts

Properties

updateInfoList

updateInfoList

List of community information updates.

ZIMCommunityMemberStateChangedEventResult

Triggered when a community member's state changes.

Declared in ZIMEventHandler.ts

Properties

communityID

communityID
communityID: string

Community ID.

changeInfoList

changeInfoList

List of community member state changes.

ZIMCommunityMemberInfoUpdatedEventResult

Triggered when community member information is updated.

Declared in ZIMEventHandler.ts

Properties

communityID

communityID
communityID: string

Community ID.

updateInfoList

updateInfoList

List of community member information updates.

ZIMCommunityChannelListChangedEventResult

Triggered when the community channel list changes.

Declared in ZIMEventHandler.ts

Properties

communityID

communityID
communityID: string

Community ID.

changeInfoList

changeInfoList

List of community channel changes.

ZIMCommunityChannelInfoUpdatedEventResult

Triggered when community channel information is updated.

Declared in ZIMEventHandler.ts

Properties

communityID

communityID
communityID: string

Community ID.

updateInfoList

updateInfoList

List of community channel information updates.

ZIMLogUploadedResult

Methods

onLogUploaded

onLogUploaded
type ZIMLogUploadedResult = () => void
Callback of the log upload result.

ZIMLoggedInResult

Methods

onLoggedIn

onLoggedIn
type ZIMLoggedInResult = () => void
Callback of the login result.

After 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

onTokenRenewed
type ZIMTokenRenewedResult = (token: string) => void
Callback of the result of renewing the token.

Parameters

NameTypeDescription
tokenstringThe renewed token.

ZIMUserNameUpdatedResult

Methods

onUserNameUpdated

onUserNameUpdated
type ZIMUserNameUpdatedResult = (userName: string) => void
Update the user name callback.

Parameters

NameTypeDescription
userNamestringThe updated user name.

ZIMUserAvatarUrlUpdatedResult

Methods

onUserAvatarUrlUpdated

onUserAvatarUrlUpdated
type ZIMUserAvatarUrlUpdatedResult = (userAvatarUrl: string) => void
Callback for updating the user avatar URL.

Parameters

NameTypeDescription
userAvatarUrlstringThe updated user avatar URL.

ZIMUserExtendedDataUpdatedResult

Methods

onUserExtendedDataUpdated

onUserExtendedDataUpdated
type ZIMUserExtendedDataUpdatedResult = (extendedData: string) => void
Update the user extended data callback.

Parameters

NameTypeDescription
extendedDatastringThe updated user extended data.

ZIMUserCustomStatusUpdatedResult

Methods

onUserCustomStatusUpdated

onUserCustomStatusUpdated
type ZIMUserCustomStatusUpdatedResult = (customStatus: string) => void
The callback of the custom status update.

Parameters

NameTypeDescription
customStatusstringThe updated user custom status.

ZIMUsersInfoQueriedResult

Methods

onUsersInfoQueried

onUsersInfoQueried
type ZIMUsersInfoQueriedResult = (userList: ZIMUserFullInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Query the userInfo callback.

Parameters

NameTypeDescription
userListZIMUserFullInfo[]The queried user information list.
errorUserListZIMErrorUserInfo[]The list of user IDs that failed to be queried.

ZIMUserOfflinePushRuleUpdatedResult

Methods

onUserOfflinePushRuleUpdated

onUserOfflinePushRuleUpdated
type ZIMUserOfflinePushRuleUpdatedResult = (offlinePushRule: ZIMUserOfflinePushRule) => void
Update the result callback of the user offline push rule.

Parameters

NameTypeDescription
offlinePushRuleZIMUserOfflinePushRuleThe updated user offline push rule.

ZIMSelfUserInfoQueriedResult

Methods

onSelfUserInfoQueried

onSelfUserInfoQueried
type ZIMSelfUserInfoQueriedResult = (selfUserInfo: ZIMSelfUserInfo) => void
Callback result of querying personal user information and rules.

Parameters

NameTypeDescription
selfUserInfoZIMSelfUserInfoThe current user information and rules.

ZIMUsersStatusQueriedResult

Methods

onUsersStatusQueried

onUsersStatusQueried
type ZIMUsersStatusQueriedResult = (userStatusList: ZIMUserStatus[], errorUserList: ZIMErrorUserInfo[]) => void
Result callback of the queryUsersStatus interface for batch querying user online status.

Parameters

NameTypeDescription
userStatusListZIMUserStatus[]The queried user status list.
errorUserListZIMErrorUserInfo[]The list of user IDs that failed to be queried.

ZIMUsersStatusSubscribedResult

Methods

onUsersStatusSubscribed

onUsersStatusSubscribed
type ZIMUsersStatusSubscribedResult = (errorUserList: ZIMErrorUserInfo[]) => void
Callback for the operation results of the batch subscription interface.

Parameters

NameTypeDescription
errorUserListZIMErrorUserInfo[]The list of user IDs that failed to subscribe.

ZIMUsersStatusUnsubscribedResult

Methods

onUsersStatusUnsubscribed

onUsersStatusUnsubscribed
type ZIMUsersStatusUnsubscribedResult = (errorUserList: ZIMErrorUserInfo[]) => void
Callback for canceling the operations of subscribing interfaces in a batch.

Parameters

NameTypeDescription
errorUserListZIMErrorUserInfo[]The list of user IDs that failed to unsubscribe.

ZIMSubscribedUserStatusListQueriedResult

Methods

onSubscribedUserStatusListQueried

onSubscribedUserStatusListQueried
type ZIMSubscribedUserStatusListQueriedResult = (userStatusSubscriptionList: ZIMUserStatusSubscription[]) => void
Query for the current user subscription list operation results callback.

Parameters

NameTypeDescription
userStatusSubscriptionListZIMUserStatusSubscription[]The user status subscription list.

ZIMConversationQueriedResult

Methods

onConversationQueried

onConversationQueried
type ZIMConversationQueriedResult = (conversation: ZIMConversation) => void
Conversation query callback.

Parameters

NameTypeDescription
conversationZIMConversationThe queried conversation object.

ZIMConversationListQueriedResult

Methods

onConversationListQueried

onConversationListQueried
type ZIMConversationListQueriedResult = (conversationList: ZIMConversation[]) => void
Session list query callback.

Parameters

NameTypeDescription
conversationListZIMConversation[]The queried conversation list.

ZIMConversationTotalUnreadMessageCountQueriedResult

Methods

onConversationTotalUnreadMessageCountQueried

onConversationTotalUnreadMessageCountQueried
type ZIMConversationTotalUnreadMessageCountQueriedResult = (unreadMessageCount: number) => void
Query conversation unread total count callback.

Parameters

NameTypeDescription
unreadMessageCountnumberThe total count of unread messages across all conversations.

ZIMConversationDeletedResult

Methods

onConversationDeleted

onConversationDeleted
type ZIMConversationDeletedResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback for conversation deletion.

Parameters

NameTypeDescription
conversationIDstringThe ID of the deleted conversation.
conversationTypeZIMConversationTypeThe type of the deleted conversation.

ZIMConversationsAllDeletedResult

Methods

onConversationsAllDeleted

onConversationsAllDeleted
type ZIMConversationsAllDeletedResult = () => void
Callback for conversations deletion.

ZIMConversationUnreadMessageCountClearedResult

Methods

onConversationUnreadMessageCountCleared

onConversationUnreadMessageCountCleared
type ZIMConversationUnreadMessageCountClearedResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback for session unread clearing.

Parameters

NameTypeDescription
conversationIDstringThe conversation ID whose unread message count was cleared.
conversationTypeZIMConversationTypeThe conversation type whose unread message count was cleared.

ZIMConversationTotalUnreadMessageCountClearedResult

Methods

onConversationTotalUnreadMessageCountCleared

onConversationTotalUnreadMessageCountCleared
type ZIMConversationTotalUnreadMessageCountClearedResult = () => void
Callback for sessions unread clearing.

ZIMConversationNotificationStatusSetResult

Methods

onConversationNotificationStatusSet

onConversationNotificationStatusSet
type ZIMConversationNotificationStatusSetResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback for conversation notification state settings.

Parameters

NameTypeDescription
conversationIDstringThe conversation ID for which the notification status was set.
conversationTypeZIMConversationTypeThe conversation type for which the notification status was set.

ZIMConversationMessageReceiptReadSentResult

Methods

onConversationMessageReceiptReadSent

onConversationMessageReceiptReadSent
type ZIMConversationMessageReceiptReadSentResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback interface for setting the read receipt conversation.

Parameters

NameTypeDescription
conversationIDstringThe conversation ID for which the receipt was sent.
conversationTypeZIMConversationTypeThe conversation type for which the receipt was sent.

ZIMConversationPinnedStateUpdatedResult

Methods

onConversationPinnedStateUpdated

onConversationPinnedStateUpdated
type ZIMConversationPinnedStateUpdatedResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback for conversation pinned state updated.

Parameters

NameTypeDescription
conversationIDstringThe conversation ID whose pinned state was updated.
conversationTypeZIMConversationTypeThe conversation type whose pinned state was updated.

ZIMConversationPinnedListQueriedResult

Methods

onConversationPinnedListQueried

onConversationPinnedListQueried
type ZIMConversationPinnedListQueriedResult = (conversationList: ZIMConversation[]) => void
Callback for querying the pinned conversation list.

Parameters

NameTypeDescription
conversationListZIMConversation[]The queried pinned conversation list.

ZIMConversationDraftSetResult

Methods

onConversationDraftSet

onConversationDraftSet
type ZIMConversationDraftSetResult = (conversationID: string, conversationType: ZIMConversationType) => void
Sets the callback for the session draft.

Parameters

NameTypeDescription
conversationIDstringThe conversation ID for which the draft was set.
conversationTypeZIMConversationTypeThe conversation type for which the draft was set.

ZIMConversationMarkSetResult

Methods

onConversationMarkSet

onConversationMarkSet
type ZIMConversationMarkSetResult = (failedConversationInfos: ZIMConversationBaseInfo[]) => void
Callback for conversation mark set.

Parameters

NameTypeDescription
failedConversationInfosZIMConversationBaseInfo[]The list of conversation info objects that failed to have marks set.

ZIMConversationMessageDestructDurationSetResult

Methods

onConversationMessageDestructDurationSet

onConversationMessageDestructDurationSet
type ZIMConversationMessageDestructDurationSetResult = (conversationID: string, conversationType: ZIMConversationType) => void
Callback for the result of setting the message self-destruction duration in a conversation.

Parameters

NameTypeDescription
conversationIDstringThe ID of the conversation for which the setting was applied.
conversationTypeZIMConversationTypeThe type of the conversation for which the setting was applied.

ZIMConversationsSearchedResult

Methods

onConversationsSearched

onConversationsSearched
type ZIMConversationsSearchedResult = (conversationSearchInfoList: ZIMConversationSearchInfo[], nextFlag: number) => void
Search for the return of local conversations results based on local messages.

Parameters

NameTypeDescription
conversationSearchInfoListZIMConversationSearchInfo[]The list of searched conversation results.
nextFlagnumberAnchor for the next page query.

ZIMMessageSentResult

Methods

onMessageSent

onMessageSent
type ZIMMessageSentResult = (message: ZIMMessage) => void
Callback of the result of sending the message.

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMMessageAttachedResult

Methods

onMessageAttached

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

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMMediaUploadingProgress

Methods

onMediaUploadingProgress

onMediaUploadingProgress
type ZIMMediaUploadingProgress = (message: ZIMMediaMessage, currentFileSize: unsigned long long, totalFileSize: unsigned long long) => void
Progress callback for sending media messages.

Parameters

NameTypeDescription
messageZIMMediaMessageMedia message object.
currentFileSizeunsigned long longCurrent file size.
totalFileSizeunsigned long longTotal file size.

ZIMMultipleMediaUploadingProgress

Methods

onMultipleMediaUploadingProgress

onMultipleMediaUploadingProgress
type ZIMMultipleMediaUploadingProgress = (message: ZIMMultipleMessage, currentFileSize: number, totalFileSize: number, messageInfoIndex: number, currentIndexFileSize: number, totalIndexFileSize: number) => void
Callback for multiple media file upload progress.

Parameters

NameTypeDescription
messageZIMMultipleMessageMultiple media message object.
currentFileSizenumberCurrent file size.
totalFileSizenumberTotal file size.
messageInfoIndexnumberCurrent message index.
currentIndexFileSizenumberCurrent index file size.
totalIndexFileSizenumberTotal index file size.

ZIMMessageQueriedResult

Methods

onMessageQueried

onMessageQueried
type ZIMMessageQueriedResult = (conversationID: string, conversationType: ZIMConversationType, messageList: ZIMMessage[]) => void
The developer uses this callback to get a list of queried messages, which can be used to display historical messages.

Parameters

NameTypeDescription
conversationIDstringConversation ID.
conversationTypeZIMConversationTypeConversation type.
messageListZIMMessage[]Message list.

ZIMMessageDeletedResult

Methods

onMessageDeleted

onMessageDeleted
type ZIMMessageDeletedResult = (conversationID: string, conversationType: ZIMConversationType) => void
A callback to delete a message.

Parameters

NameTypeDescription
conversationIDstringConversation ID.
conversationTypeZIMConversationTypeConversation type.

ZIMConversationMessagesAllDeletedResult

Methods

onConversationMessagesAllDeleted

onConversationMessagesAllDeleted
type ZIMConversationMessagesAllDeletedResult = () => void
Deletes callbacks of all messages for all sessions.

ZIMMessageRevokedResult

Methods

onMessageRevoked

onMessageRevoked
type ZIMMessageRevokedResult = (message: ZIMMessage) => void
Retracted news consequential reconciliation.

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMMessageInsertedResult

Methods

onMessageInserted

onMessageInserted
type ZIMMessageInsertedResult = (message: ZIMMessage) => void
Callback of the result of inserting the message.

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMMessageLocalExtendedDataUpdatedResult

Methods

onMessageLocalExtendedDataUpdated

onMessageLocalExtendedDataUpdated
type ZIMMessageLocalExtendedDataUpdatedResult = (message: ZIMMessage) => void
Callback for updating message local extension fields.

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMMessageReceiptsReadSentResult

Methods

onMessageReceiptsReadSent

onMessageReceiptsReadSent
type ZIMMessageReceiptsReadSentResult = (conversationID: string, conversationType: ZIMConversationType, errorMessageIDs: string[]) => void
Callback interface for setting the read receipt message.

Parameters

NameTypeDescription
conversationIDstringConversation ID.
conversationTypeZIMConversationTypeConversation type.
errorMessageIDsstring[]Error message ID list.

ZIMMessageReceiptsInfoQueriedResult

Methods

onMessageReceiptsInfoQueried

onMessageReceiptsInfoQueried
type ZIMMessageReceiptsInfoQueriedResult = (infos: ZIMMessageReceiptInfo[], errorMessageIDs: string[]) => void
Callback interface for query receipt message read.

Parameters

NameTypeDescription
infosZIMMessageReceiptInfo[]Message receipt information list.
errorMessageIDsstring[]Error message ID list.

ZIMMessagesSearchedResult

Methods

onMessagesSearched

onMessagesSearched
type ZIMMessagesSearchedResult = (conversationID: string, conversationType: ZIMConversationType, messageList: ZIMMessage[], nextMessage: ZIMMessage) => void
Return of local message search results.

Parameters

NameTypeDescription
conversationIDstringConversation ID.
conversationTypeZIMConversationTypeConversation type.
messageListZIMMessage[]Message list.
nextMessageZIMMessageNext message object.

ZIMMessagesGlobalSearchedResult

Methods

onMessagesGlobalSearched

onMessagesGlobalSearched
type ZIMMessagesGlobalSearchedResult = (messageList: ZIMMessage[], nextMessage: ZIMMessage) => void
Return of local message search results.

Parameters

NameTypeDescription
messageListZIMMessage[]Message list.
nextMessageZIMMessageNext message object.

ZIMMessageReactionAddedResult

Methods

onMessageReactionAdded

onMessageReactionAdded
type ZIMMessageReactionAddedResult = (reaction: ZIMMessageReaction) => void
The addition of return for message reactions.

Parameters

NameTypeDescription
reactionZIMMessageReactionMessage reaction object.

ZIMMessageReactionDeletedResult

Methods

onMessageReactionDeleted

onMessageReactionDeleted
type ZIMMessageReactionDeletedResult = (reaction: ZIMMessageReaction) => void
The delete of return for message reactions.

Parameters

NameTypeDescription
reactionZIMMessageReactionMessage reaction object.

ZIMMessageReactionUserListQueriedResult

Methods

onMessageReactionUserListQueried

onMessageReactionUserListQueried
type ZIMMessageReactionUserListQueriedResult = (message: ZIMMessage, userInfoList: ZIMMessageReactionUserFullInfo[], reactionType: string, nextFlag: number, totalCount: number) => void
The return of the query for the details of the reaction.

Parameters

NameTypeDescription
messageZIMMessageMessage object.
userInfoListZIMMessageReactionUserFullInfo[]List of user reaction information.
reactionTypestringMessage reaction type.
nextFlagnumberList query anchor, used to query the next page. The current value returns 0, which means that the list has been pulled out.
totalCountnumberTotal user count.

ZIMCombineMessageDetailQueriedResult

Methods

onCombineMessageDetailQueried

onCombineMessageDetailQueried
type ZIMCombineMessageDetailQueriedResult = (message: ZIMCombineMessage) => void
Result callback for querying merge message details.

Parameters

NameTypeDescription
messageZIMCombineMessageCombine message object. The messageList in this object already contains the sub-message list of the merged message.

ZIMMessageRepliedListQueriedResult

Methods

onMessageRepliedListQueried

onMessageRepliedListQueried
type ZIMMessageRepliedListQueriedResult = (messageList: ZIMMessage[], nextFlag: number, rootRepliedInfo: ZIMMessageRootRepliedInfo) => void
The callback for querying the reply message list result.

Parameters

NameTypeDescription
messageListZIMMessage[]Message list.
nextFlagnumberList query anchor, used to query the next page. The current value returns 0, which means that the list has been pulled out.
rootRepliedInfoZIMMessageRootRepliedInfoRoot message reply information.

ZIMMessageEditedResult

Methods

onMessageEdited

onMessageEdited
type ZIMMessageEditedResult = (message: ZIMMessage) => void
Callback of the result of editing the message.

Parameters

NameTypeDescription
messageZIMMessageMessage object.

ZIMSendingMessageCancelledResult

Methods

onSendingMessageCancelled

onSendingMessageCancelled
type ZIMSendingMessageCancelledResult = () => void
Callback of the result of cancel sending the message.

ZIMMessagePinnedResult

Methods

onMessagePinned

onMessagePinned
type ZIMMessagePinnedResult = () => void
Callback of the result of the message to be pinned or unpinned.

ZIMPinnedMessageListQueriedResult

Methods

onPinnedMessageListQueried

onPinnedMessageListQueried
type ZIMPinnedMessageListQueriedResult = (messageList: ZIMMessage[]) => void
The developer uses this callback to get a list of queried pinned messages, which can be used to display pinned messages.

Parameters

NameTypeDescription
messageListZIMMessage[]Message list.

ZIMRoomCreatedResult

Methods

onRoomCreated

onRoomCreated
type ZIMRoomCreatedResult = (roomInfo: ZIMRoomFullInfo) => void
Callback of the result of creating the room.

Parameters

NameTypeDescription
roomInfoZIMRoomFullInfoRoom information.

ZIMRoomJoinedResult

Methods

onRoomJoined

onRoomJoined
type ZIMRoomJoinedResult = (roomInfo: ZIMRoomFullInfo) => void
Callback of the result of joining the room.

Parameters

NameTypeDescription
roomInfoZIMRoomFullInfoRoom information.

ZIMRoomEnteredResult

Methods

onRoomEntered

onRoomEntered
type ZIMRoomEnteredResult = (roomInfo: ZIMRoomFullInfo) => void
Callback of the result of entering the room.

Parameters

NameTypeDescription
roomInfoZIMRoomFullInfoRoom information.

ZIMRoomSwitchedResult

Methods

onRoomSwitched

onRoomSwitched
type ZIMRoomSwitchedResult = (roomInfo: ZIMRoomFullInfo) => void
Callback of the result of switched rooms.

Parameters

NameTypeDescription
roomInfoZIMRoomFullInfoRoom information.

ZIMRoomLeftResult

Methods

onRoomLeft

onRoomLeft
type ZIMRoomLeftResult = (roomID: string) => void
Callback of the result of leaving the room.

Parameters

NameTypeDescription
roomIDstringRoom ID.

ZIMRoomAllLeftResult

Methods

onRoomAllLeft

onRoomAllLeft
type ZIMRoomAllLeftResult = (roomIDs: string[]) => void
Callback for the results of leaving all rooms.

Parameters

NameTypeDescription
roomIDsstring[]Room ID list.

ZIMRoomMemberQueriedResult

Methods

onRoomMemberQueried

onRoomMemberQueried
type ZIMRoomMemberQueriedResult = (roomID: string, memberList: ZIMUserInfo[], nextFlag: string) => void
Callback of the result of querying the room members list.

Parameters

NameTypeDescription
roomIDstringRoom ID.
memberListZIMUserInfo[]Room member list.
nextFlagstringUsed to query the next page. The current value returns an empty string, which means that the list has been pulled out.

ZIMRoomMembersQueriedResult

Methods

onRoomMembersQueried

onRoomMembersQueried
type ZIMRoomMembersQueriedResult = (roomID: string, memberList: ZIMRoomMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Callback for the result of querying the specified member of the room.

Parameters

NameTypeDescription
roomIDstringRoom ID.
memberListZIMRoomMemberInfo[]Room member list.
errorUserListZIMErrorUserInfo[]Error member list.

ZIMRoomOnlineMemberCountQueriedResult

Methods

onRoomOnlineMemberCountQueried

onRoomOnlineMemberCountQueried
type ZIMRoomOnlineMemberCountQueriedResult = (roomID: string, count: unsigned int) => void
Callback of the result of querying the online members count in the room.

Parameters

NameTypeDescription
roomIDstringRoom ID.
countunsigned intOnline member count.

ZIMRoomAttributesOperatedResult

Methods

onRoomAttributesOperated

onRoomAttributesOperated
type ZIMRoomAttributesOperatedResult = (roomID: string, errorKeys: string[]) => void
The return of the operation result of the room attribute.

Parameters

NameTypeDescription
roomIDstringRoom ID.
errorKeysstring[]Error key list.

ZIMRoomAttributesBatchOperatedResult

Methods

onRoomAttributesBatchOperated

onRoomAttributesBatchOperated
type ZIMRoomAttributesBatchOperatedResult = (roomID: string) => void
The return of the result of the room attribute combination operation.

Parameters

NameTypeDescription
roomIDstringRoom ID.

ZIMRoomAttributesQueriedResult

Methods

onRoomAttributesQueried

onRoomAttributesQueried
type ZIMRoomAttributesQueriedResult = (roomID: string, roomAttributes: Map<string, string>) => void
Return of room attribute query results.

Parameters

NameTypeDescription
roomIDstringRoom ID.
roomAttributesMap<string, string>Room attributes.

ZIMRoomMembersAttributesOperatedResult

Methods

onRoomMembersAttributesOperated

onRoomMembersAttributesOperated
type ZIMRoomMembersAttributesOperatedResult = (roomID: string, infos: ZIMRoomMemberAttributesOperatedInfo[], errorUserList: string[]) => void
Callback of the result of setting room member attributes.

Parameters

NameTypeDescription
roomIDstringRoom ID.
infosZIMRoomMemberAttributesOperatedInfo[]Room member attribute operation information list.
errorUserListstring[]Error member list.

ZIMRoomMembersAttributesQueriedResult

Methods

onRoomMembersAttributesQueried

onRoomMembersAttributesQueried
type ZIMRoomMembersAttributesQueriedResult = (roomID: string, infos: ZIMRoomMemberAttributesInfo[]) => void
Returns the results of batch query of room user attributes.

Parameters

NameTypeDescription
roomIDstringRoom ID.
infosZIMRoomMemberAttributesInfo[]Room member attribute information list.

ZIMRoomMemberAttributesListQueriedResult

Methods

onRoomMemberAttributesListQueried

onRoomMemberAttributesListQueried
type ZIMRoomMemberAttributesListQueriedResult = (roomID: string, infos: ZIMRoomMemberAttributesInfo[], nextFlag: string) => void
Returns the query result of the user attribute list in the room.

Parameters

NameTypeDescription
roomIDstringRoom ID.
infosZIMRoomMemberAttributesInfo[]Room member attribute information list.
nextFlagstringUsed to query the next page. The current value returns 0, which means that the list has been pulled out.

ZIMGroupCreatedResult

Methods

onGroupCreated

onGroupCreated
type ZIMGroupCreatedResult = (groupInfo: ZIMGroupFullInfo, userList: ZIMGroupMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Returns the result of creating a group.

Parameters

NameTypeDescription
groupInfoZIMGroupFullInfoGroup information.
userListZIMGroupMemberInfo[]Group member information list.
errorUserListZIMErrorUserInfo[]Error member list.

ZIMGroupDismissedResult

Methods

onGroupDismissed

onGroupDismissed
type ZIMGroupDismissedResult = (groupID: string) => void
Returns the result of dismissing the group.

Parameters

NameTypeDescription
groupIDstringGroup ID.

ZIMGroupJoinedResult

Methods

onGroupJoined

onGroupJoined
type ZIMGroupJoinedResult = (groupInfo: ZIMGroupFullInfo) => void
Returns the result of joining the group.

Parameters

NameTypeDescription
groupInfoZIMGroupFullInfoGroup information.

ZIMGroupLeftResult

Methods

onGroupLeft

onGroupLeft
type ZIMGroupLeftResult = (groupID: string) => void
Return of the result of leaving the group.

Parameters

NameTypeDescription
groupIDstringGroup ID.

ZIMGroupUsersInvitedResult

Methods

onGroupUsersInvited

onGroupUsersInvited
type ZIMGroupUsersInvitedResult = (groupID: string, userList: ZIMGroupMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => void
The result of the user being invited to the group is returned.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userListZIMGroupMemberInfo[]Group member information list.
errorUserListZIMErrorUserInfo[]Error member list.

ZIMGroupMemberKickedResult

Methods

onGroupMemberKicked

onGroupMemberKicked
type ZIMGroupMemberKickedResult = (groupID: string, kickedUserIDList: string[], errorUserList: ZIMErrorUserInfo[]) => void
Returns the result of kicking out a group member.

Parameters

NameTypeDescription
groupIDstringGroup ID.
kickedUserIDListstring[]List of user IDs kicked out.
errorUserListZIMErrorUserInfo[]Error member list.

ZIMGroupOwnerTransferredResult

Methods

onGroupOwnerTransferred

onGroupOwnerTransferred
type ZIMGroupOwnerTransferredResult = (groupID: string, toUserID: string) => void
Returns the result of the group owner assignment.

Parameters

NameTypeDescription
groupIDstringGroup ID.
toUserIDstringNew group owner user ID.

ZIMGroupNameUpdatedResult

Methods

onGroupNameUpdated

onGroupNameUpdated
type ZIMGroupNameUpdatedResult = (groupID: string, groupName: string) => void
Returns the result of the group name update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
groupNamestringGroup name.

ZIMGroupAvatarUrlUpdatedResult

Methods

onGroupAvatarUrlUpdated

onGroupAvatarUrlUpdated
type ZIMGroupAvatarUrlUpdatedResult = (groupID: string, groupAvatarUrl: string) => void
Returns the result of the group avatar URL update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
groupAvatarUrlstringGroup avatar URL.

ZIMGroupNoticeUpdatedResult

Methods

onGroupNoticeUpdated

onGroupNoticeUpdated
type ZIMGroupNoticeUpdatedResult = (groupID: string, groupNotice: string) => void
The return of the results of the group announcement update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
groupNoticestringGroup notice.

ZIMGroupAliasUpdatedResult

Methods

onGroupAliasUpdated

onGroupAliasUpdated
type ZIMGroupAliasUpdatedResult = (groupID: string, groupAlias: string) => void
Returns the result of the group alias update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
groupAliasstringGroup alias.

ZIMGroupInfoQueriedResult

Methods

onGroupInfoQueried

onGroupInfoQueried
type ZIMGroupInfoQueriedResult = (groupInfo: ZIMGroupFullInfo) => void
Returns the result of querying group information.

Parameters

NameTypeDescription
groupInfoZIMGroupFullInfoGroup information.

ZIMGroupAttributesOperatedResult

Methods

onGroupAttributesOperated

onGroupAttributesOperated
type ZIMGroupAttributesOperatedResult = (groupID: string, errorKeys: string[]) => void
Returns the result of a group attribute operation.

Parameters

NameTypeDescription
groupIDstringGroup ID.
errorKeysstring[]Error keys.

ZIMGroupAttributesQueriedResult

Methods

onGroupAttributesQueried

onGroupAttributesQueried
type ZIMGroupAttributesQueriedResult = (groupID: string, groupAttributes: Map<string, string>) => void
The return of query group attribute results.

Parameters

NameTypeDescription
groupIDstringGroup ID.
groupAttributesMap<string, string>Group attributes.

ZIMGroupMemberRoleUpdatedResult

Methods

onGroupMemberRoleUpdated

onGroupMemberRoleUpdated
type ZIMGroupMemberRoleUpdatedResult = (groupID: string, forUserID: string, role: number) => void
Returns the result of the member role update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
forUserIDstringUser ID.
rolenumberUser role.

ZIMGroupMemberNicknameUpdatedResult

Methods

onGroupMemberNicknameUpdated

onGroupMemberNicknameUpdated
type ZIMGroupMemberNicknameUpdatedResult = (groupID: string, forUserID: string, nickname: string) => void
Returns the result of the group member's nickname update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
forUserIDstringUser ID.
nicknamestringUser nickname.

ZIMGroupMemberInfoQueriedResult

Methods

onGroupMemberInfoQueried

onGroupMemberInfoQueried
type ZIMGroupMemberInfoQueriedResult = (groupID: string, userInfo: ZIMGroupMemberInfo) => void
Returns the result of the group member query.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userInfoZIMGroupMemberInfoGroup member user information.

ZIMGroupListQueriedResult

Methods

onGroupListQueried

onGroupListQueried
type ZIMGroupListQueriedResult = (groupList: ZIMGroup[], nextFlag: number) => void
Returns the results of the query group list.

Parameters

NameTypeDescription
groupListZIMGroup[]Group list.
nextFlagnumberThe 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

onGroupMemberListQueried
type ZIMGroupMemberListQueriedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => void
Returns the result of querying the group member list.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userListZIMGroupMemberInfo[]Group member list.
nextFlagunsigned intUsed to query the next page. The current value returns 0, which means that the list has been pulled out.

ZIMGroupMemberCountQueriedResult

Methods

onGroupMemberCountQueried

onGroupMemberCountQueried
type ZIMGroupMemberCountQueriedResult = (groupID: string, count: unsigned int) => void
Returns the result of querying the group member count.

Parameters

NameTypeDescription
groupIDstringGroup ID.
countunsigned intGroup member count.

ZIMGroupMessageReceiptMemberListQueriedResult

Methods

onGroupMessageReceiptMemberListQueried

onGroupMessageReceiptMemberListQueried
type ZIMGroupMessageReceiptMemberListQueriedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => void
Callback interface for querying the specific read/unread member list of group receipt messages.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userListZIMGroupMemberInfo[]Group member list.
nextFlagunsigned intUsed to query the next page. The current value returns 0, which means that the list has been pulled out.

ZIMGroupMutedResult

Methods

onGroupMuted

onGroupMuted
type ZIMGroupMutedResult = (groupID: string, isMute: boolean, mutedInfo: ZIMGroupMuteInfo) => void
Returns the result of the group mute info update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
isMutebooleanWhether to mute.
mutedInfoZIMGroupMuteInfoGroup mute information.

ZIMGroupMembersMutedResult

Methods

onGroupMembersMuted

onGroupMembersMuted
type ZIMGroupMembersMutedResult = (groupID: string, isMute: boolean, duration: number, mutedUserIDs: string[], errorUserList: ZIMErrorUserInfo[]) => void
Returns the result of the group members mute info update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
isMutebooleanWhether to mute.
durationnumberMute duration.
mutedUserIDsstring[]List of muted member userIDs.
errorUserListZIMErrorUserInfo[]List of user information that failed to be muted.

ZIMGroupMemberMutedListQueriedResult

Methods

onGroupMemberMutedListQueried

onGroupMemberMutedListQueried
type ZIMGroupMemberMutedListQueriedResult = (groupID: string, nextFlag: number, userList: ZIMGroupMemberInfo[]) => void
Returns the result of querying the group muted member list.

Parameters

NameTypeDescription
groupIDstringGroup ID.
nextFlagnumberUsed to query the next page. The current value returns 0, which means that the list has been pulled out.
userListZIMGroupMemberInfo[]Group member list.

ZIMGroupsSearchedResult

Methods

onGroupsSearched

onGroupsSearched
type ZIMGroupsSearchedResult = (groupSearchInfoList: ZIMGroupSearchInfo[], nextFlag: unsigned int) => void
Returns the result of search a group.

Parameters

NameTypeDescription
groupSearchInfoListZIMGroupSearchInfo[]Group search information list.
nextFlagunsigned intUsed to query the next page. The current value returns 0, which means that the list has been pulled out.

ZIMGroupMembersSearchedResult

Methods

onGroupMembersSearched

onGroupMembersSearched
type ZIMGroupMembersSearchedResult = (groupID: string, userList: ZIMGroupMemberInfo[], nextFlag: unsigned int) => void
Returns the result of search a group members.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userListZIMGroupMemberInfo[]Group member list.
nextFlagunsigned intUsed to query the next page. The current value returns 0, which means that the list has been pulled out.

ZIMGroupJoinModeUpdatedResult

Methods

onGroupJoinModeUpdated

onGroupJoinModeUpdated
type ZIMGroupJoinModeUpdatedResult = (groupID: string, mode: ZIMGroupJoinMode) => void
The return of the results of the group verification mode update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
modeZIMGroupJoinModeGroup join mode.

ZIMGroupInviteModeUpdatedResult

Methods

onGroupInviteModeUpdated

onGroupInviteModeUpdated
type ZIMGroupInviteModeUpdatedResult = (groupID: string, mode: ZIMGroupInviteMode) => void
The return of the results of the group verification mode update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
modeZIMGroupInviteModeGroup invite mode.

ZIMGroupBeInviteModeUpdatedResult

Methods

onGroupBeInviteModeUpdated

onGroupBeInviteModeUpdated
type ZIMGroupBeInviteModeUpdatedResult = (groupID: string, mode: ZIMGroupBeInviteMode) => void
The return of the results of the group verification mode update.

Parameters

NameTypeDescription
groupIDstringGroup ID.
modeZIMGroupBeInviteModeGroup be invite mode.

ZIMGroupJoinApplicationSentResult

Methods

onGroupJoinApplicationSent

onGroupJoinApplicationSent
type ZIMGroupJoinApplicationSentResult = (groupID: string) => void
The return of the results of the group join application sent.

Parameters

NameTypeDescription
groupIDstringGroup ID.

ZIMGroupJoinApplicationAcceptedResult

Methods

onGroupJoinApplicationAccepted

onGroupJoinApplicationAccepted
type ZIMGroupJoinApplicationAcceptedResult = (groupID: string, userID: string) => void
The return of the results of the group join application accept.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userIDstringUser ID.

ZIMGroupJoinApplicationRejectedResult

Methods

onGroupJoinApplicationRejected

onGroupJoinApplicationRejected
type ZIMGroupJoinApplicationRejectedResult = (groupID: string, userID: string) => void
The return of the results of the group join application reject.

Parameters

NameTypeDescription
groupIDstringGroup ID.
userIDstringUser ID.

ZIMGroupInviteApplicationsSentResult

Methods

onGroupInviteApplicationsSent

onGroupInviteApplicationsSent
type ZIMGroupInviteApplicationsSentResult = (groupID: string, errorUserList: ZIMErrorUserInfo[]) => void
The return of the results of the group invite application sent.

Parameters

NameTypeDescription
groupIDstringGroup ID.
errorUserListZIMErrorUserInfo[]Invite failed user information list.

ZIMGroupInviteApplicationAcceptedResult

Methods

onGroupInviteApplicationAccepted

onGroupInviteApplicationAccepted
type ZIMGroupInviteApplicationAcceptedResult = (groupInfo: ZIMGroupFullInfo, inviterUserID: string) => void
The return of the results of the group invite application accept.

Parameters

NameTypeDescription
groupInfoZIMGroupFullInfoGroup information.
inviterUserIDstringInviter user ID.

ZIMGroupInviteApplicationRejectedResult

Methods

onGroupInviteApplicationRejected

onGroupInviteApplicationRejected
type ZIMGroupInviteApplicationRejectedResult = (groupID: string, inviterUserID: string) => void
The return of the results of the group invite application accept.

Parameters

NameTypeDescription
groupIDstringGroup information.
inviterUserIDstringInviter user ID.

ZIMGroupApplicationListQueriedResult

Methods

onGroupApplicationListQueried

onGroupApplicationListQueried
type ZIMGroupApplicationListQueriedResult = (applicationList: ZIMGroupApplicationInfo[], nextFlag: number) => void
Query the callback of group application list.

Parameters

NameTypeDescription
applicationListZIMGroupApplicationInfo[]Group application information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMCallInvitationSentResult

Methods

onCallInvitationSent

onCallInvitationSent
type ZIMCallInvitationSentResult = (callID: string, timeout: number, errorUserList: ZIMErrorUserInfo[]) => void
Action callback for sending a call invitation.

Parameters

NameTypeDescription
callIDstringCall ID.
timeoutnumber
errorUserListZIMErrorUserInfo[]List of users who failed to receive the invitation.

ZIMCallingInvitationSentResult

Methods

onCallingInvitationSent

onCallingInvitationSent
type ZIMCallingInvitationSentResult = (callID: string, errorUserList: ZIMErrorUserInfo[]) => void
Callback result of inviting the current call.

Parameters

NameTypeDescription
callIDstringCall ID.
errorUserListZIMErrorUserInfo[]List of users who failed to receive the invitation.

ZIMCallCancelSentResult

Methods

onCallCancelSent

onCallCancelSent
type ZIMCallCancelSentResult = (callID: string, errorInvitees: string[]) => void
Callback for the action to cancel the call invitation.

Parameters

NameTypeDescription
callIDstringCall ID.
errorInviteesstring[]Call invitation failed user ID list.

ZIMCallAcceptanceSentResult

Methods

onCallAcceptanceSent

onCallAcceptanceSent
type ZIMCallAcceptanceSentResult = (callID: string) => void
Action callback for accepting call invitations.

Parameters

NameTypeDescription
callIDstringCall ID.

ZIMCallRejectionSentResult

Methods

onCallRejectionSent

onCallRejectionSent
type ZIMCallRejectionSentResult = (callID: string) => void
Action callback for rejecting a call invitation.

Parameters

NameTypeDescription
callIDstringCall ID.

ZIMCallJoinSentResult

Methods

onCallJoinSent

onCallJoinSent
type ZIMCallJoinSentResult = (callID: string, createTime: number, joinTime: number, extendedData: string, callUserList: ZIMCallUserInfo[]) => void
Result callback of joining the call invitation.

Parameters

NameTypeDescription
callIDstringCall ID.
createTimenumberTimestamp when the call was created, in milliseconds.
joinTimenumberTimestamp when the user joined the call, in milliseconds.
extendedDatastringExtended data.
callUserListZIMCallUserInfo[]List of call user information.

ZIMCallQuitSentResult

Methods

onCallQuitSent

onCallQuitSent
type ZIMCallQuitSentResult = (callID: string, createTime: number, acceptTime: number, quitTime: number) => void
Quit the callback closure of the call invitation operation.

Parameters

NameTypeDescription
callIDstringCall ID.
createTimenumberTimestamp when the call was created, in milliseconds.
acceptTimenumberTimestamp when the call was accepted, in milliseconds.
quitTimenumberTimestamp when the user quit the call, in milliseconds.

ZIMCallEndSentResult

Methods

onCallEndSent

onCallEndSent
type ZIMCallEndSentResult = (callID: string, createTime: number, acceptTime: number, endTime: number) => void
Result callback of ending the call invitation.

Parameters

NameTypeDescription
callIDstringCall ID.
createTimenumberTimestamp when the call was created, in milliseconds.
acceptTimenumberTimestamp when the call was accepted, in milliseconds.
endTimenumberTimestamp when the call ended, in milliseconds.

ZIMCallInvitationListQueriedResult

Methods

onCallInvitationListQueried

onCallInvitationListQueried
type ZIMCallInvitationListQueriedResult = (callList: ZIMCallInfo[], nextFlag: number) => void
Result Callback of querying the call list.

Parameters

NameTypeDescription
callListZIMCallInfo[]Call information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMFriendAddedResult

Methods

onFriendAdded

onFriendAdded
type ZIMFriendAddedResult = (friendInfo: ZIMFriendInfo) => void
Add a friend result callback.

Parameters

NameTypeDescription
friendInfoZIMFriendInfoFriend information.

ZIMFriendsDeletedResult

Methods

onFriendsDeleted

onFriendsDeleted
type ZIMFriendsDeletedResult = (errorUserList: ZIMErrorUserInfo[]) => void
Return results of deleting friends.

Parameters

NameTypeDescription
errorUserListZIMErrorUserInfo[]Friend information.

ZIMFriendListQueriedResult

Methods

onFriendListQueried

onFriendListQueried
type ZIMFriendListQueriedResult = (friendList: ZIMFriendInfo[], nextFlag: number) => void
The returned result of querying the friends list.

Parameters

NameTypeDescription
friendListZIMFriendInfo[]Friend information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMFriendsInfoQueriedResult

Methods

onFriendsInfoQueried

onFriendsInfoQueried
type ZIMFriendsInfoQueriedResult = (friendInfos: ZIMFriendInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Return results of querying friend information in batches.

Parameters

NameTypeDescription
friendInfosZIMFriendInfo[]Friend information list.
errorUserListZIMErrorUserInfo[]Friend information.

ZIMFriendsRelationCheckedResult

Methods

onFriendsRelationChecked

onFriendsRelationChecked
type ZIMFriendsRelationCheckedResult = (relationInfos: ZIMFriendRelationInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Check the friend relationship result.

Parameters

NameTypeDescription
relationInfosZIMFriendRelationInfo[]Friend relationship information list.
errorUserListZIMErrorUserInfo[]Friend information.

ZIMFriendApplicationSentResult

Methods

onFriendApplicationSent

onFriendApplicationSent
type ZIMFriendApplicationSentResult = (applicationInfo: ZIMFriendApplicationInfo) => void
The result of sending a friend application.

Parameters

NameTypeDescription
applicationInfoZIMFriendApplicationInfoFriend application information.

ZIMFriendApplicationAcceptedResult

Methods

onFriendApplicationAccepted

onFriendApplicationAccepted
type ZIMFriendApplicationAcceptedResult = (friendInfo: ZIMFriendInfo) => void
Accept the returned result of friend application.

Parameters

NameTypeDescription
friendInfoZIMFriendInfoFriend information.

ZIMFriendApplicationRejectedResult

Methods

onFriendApplicationRejected

onFriendApplicationRejected
type ZIMFriendApplicationRejectedResult = (userInfo: ZIMUserInfo) => void
Accept the returned result of friend application.

Parameters

NameTypeDescription
userInfoZIMUserInfoUser information.

ZIMFriendApplicationListQueriedResult

Methods

onFriendApplicationListQueried

onFriendApplicationListQueried
type ZIMFriendApplicationListQueriedResult = (applicationList: ZIMFriendApplicationInfo[], nextFlag: number) => void
The result of sending a friend application.

Parameters

NameTypeDescription
applicationListZIMFriendApplicationInfo[]Friend application information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMFriendAliasUpdatedResult

Methods

onFriendAliasUpdated

onFriendAliasUpdated
type ZIMFriendAliasUpdatedResult = (friendInfo: ZIMFriendInfo) => void
Return results of updating friend alias.

Parameters

NameTypeDescription
friendInfoZIMFriendInfoFriend information.

ZIMFriendAttributesUpdatedResult

Methods

onFriendAttributesUpdated

onFriendAttributesUpdated
type ZIMFriendAttributesUpdatedResult = (friendInfo: ZIMFriendInfo) => void
Return results of updating friend attributes.

Parameters

NameTypeDescription
friendInfoZIMFriendInfoFriend information.

ZIMFriendsSearchedResult

Methods

onFriendsSearched

onFriendsSearched
type ZIMFriendsSearchedResult = (friendInfos: ZIMFriendInfo[], nextFlag: number) => void
Search results returned by local friends.

Parameters

NameTypeDescription
friendInfosZIMFriendInfo[]Friend information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMBlacklistUsersAddedResult

Methods

onBlacklistUsersAdded

onBlacklistUsersAdded
type ZIMBlacklistUsersAddedResult = (errorUserList: ZIMErrorUserInfo[]) => void
Callback for operation results of adding users to the blacklist.

Parameters

NameTypeDescription
errorUserListZIMErrorUserInfo[]User information.

ZIMBlacklistUsersRemovedResult

Methods

onBlacklistUsersRemoved

onBlacklistUsersRemoved
type ZIMBlacklistUsersRemovedResult = (errorUserList: ZIMErrorUserInfo[]) => void
The callback result of the operation to remove the user from the blacklist.

Parameters

NameTypeDescription
errorUserListZIMErrorUserInfo[]User information.

ZIMBlacklistQueriedResult

Methods

onBlacklistQueried

onBlacklistQueried
type ZIMBlacklistQueriedResult = (blacklist: ZIMUserInfo[], nextFlag: number) => void
Query the blacklist result callback.

Parameters

NameTypeDescription
blacklistZIMUserInfo[]Blacklist user information list.
nextFlagnumberPagination flag, used to get the next page. The current value returns 0, indicating that all data has been pulled out.

ZIMBlacklistCheckedResult

Methods

onBlacklistChecked

onBlacklistChecked
type ZIMBlacklistCheckedResult = (isUserInBlacklist: boolean) => void
Blacklist check result callback.

Parameters

NameTypeDescription
isUserInBlacklistbooleanWhether in blacklist.

ZIMCommunityCreatedResult

Methods

onCommunityCreated

onCommunityCreated
type ZIMCommunityCreatedResult = (communityInfo: ZIMCommunityFullInfo) => void
Callback of the result of creating a community.

Parameters

NameTypeDescription
communityInfoZIMCommunityFullInfoCommunity information.

ZIMCommunityDismissedResult

Methods

onCommunityDismissed

onCommunityDismissed
type ZIMCommunityDismissedResult = (communityID: string) => void
Callback of the result of dismissing a community.

Parameters

NameTypeDescription
communityIDstringCommunity ID.

ZIMCommunityJoinedResult

Methods

onCommunityJoined

onCommunityJoined
type ZIMCommunityJoinedResult = (communityInfo: ZIMCommunityFullInfo) => void
Callback of the result of joining a community.

Parameters

NameTypeDescription
communityInfoZIMCommunityFullInfoCommunity information.

ZIMCommunityLeftResult

Methods

onCommunityLeft

onCommunityLeft
type ZIMCommunityLeftResult = (communityID: string) => void
Callback of the result of leaving a community.

Parameters

NameTypeDescription
communityIDstringCommunity ID.

ZIMCommunityListQueriedResult

Methods

onCommunityListQueried

onCommunityListQueried
type ZIMCommunityListQueriedResult = (communityList: ZIMCommunity[], nextFlag: number) => void
Callback of the result of querying the community list.

Parameters

NameTypeDescription
communityListZIMCommunity[]Community list.
nextFlagnumberNext query community list flag.

ZIMCommunityNameUpdatedResult

Methods

onCommunityNameUpdated

onCommunityNameUpdated
type ZIMCommunityNameUpdatedResult = (communityID: string, communityName: string) => void
Callback of the result of updating the community name.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
communityNamestringCommunity name.

ZIMCommunityAvatarUrlUpdatedResult

Methods

onCommunityAvatarUrlUpdated

onCommunityAvatarUrlUpdated
type ZIMCommunityAvatarUrlUpdatedResult = (communityID: string, communityAvatarUrl: string) => void
Callback of the result of updating the community avatar URL.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
communityAvatarUrlstringCommunity avatar URL.

ZIMCommunityNoticeUpdatedResult

Methods

onCommunityNoticeUpdated

onCommunityNoticeUpdated
type ZIMCommunityNoticeUpdatedResult = (communityID: string, communityNotice: string) => void
Callback of the result of updating the community notice.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
communityNoticestringCommunity notice.

ZIMCommunityAttributesOperatedResult

Methods

onCommunityAttributesOperated

onCommunityAttributesOperated
type ZIMCommunityAttributesOperatedResult = (communityID: string, errorKeys: string[]) => void
Callback of the result of operating community attributes.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
errorKeysstring[]Error keys.

ZIMCommunityNotificationStatusSetResult

Methods

onCommunityNotificationStatusSet

onCommunityNotificationStatusSet
type ZIMCommunityNotificationStatusSetResult = (communityID: string) => void
Callback of the result of setting the community notification status.

Parameters

NameTypeDescription
communityIDstringCommunity ID.

ZIMCommunityInfoQueriedResult

Methods

onCommunityInfoQueried

onCommunityInfoQueried
type ZIMCommunityInfoQueriedResult = (communityInfo: ZIMCommunityFullInfo) => void
Callback of the result of querying community information.

Parameters

NameTypeDescription
communityInfoZIMCommunityFullInfoCommunity information.

ZIMCommunityUsersInvitedResult

Methods

onCommunityUsersInvited

onCommunityUsersInvited
type ZIMCommunityUsersInvitedResult = (communityID: string, errorUserList: ZIMErrorUserInfo[]) => void
Callback of the result of inviting users into the community.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
errorUserListZIMErrorUserInfo[]The error userID list

ZIMCommunityMembersKickedResult

Methods

onCommunityMembersKicked

onCommunityMembersKicked
type ZIMCommunityMembersKickedResult = (communityID: string, errorUserList: ZIMErrorUserInfo[]) => void
Callback of the result of kicking members from the community.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
errorUserListZIMErrorUserInfo[]The error userID list

ZIMCommunityMemberRoleUpdatedResult

Methods

onCommunityMemberRoleUpdated

onCommunityMemberRoleUpdated
type ZIMCommunityMemberRoleUpdatedResult = (communityID: string, forUserID: string, memberRole: number) => void
Callback of the result of updating a community member's role.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
forUserIDstringThe user ID of the target user.
memberRolenumbermember role value

ZIMCommunityOwnerTransferredResult

Methods

onCommunityOwnerTransferred

onCommunityOwnerTransferred
type ZIMCommunityOwnerTransferredResult = (communityID: string, toUserID: string) => void
Callback of the result of transferring the community owner.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
toUserIDstringThe user ID of the new community owner.

ZIMCommunityMemberListQueriedResult

Methods

onCommunityMemberListQueried

onCommunityMemberListQueried
type ZIMCommunityMemberListQueriedResult = (communityID: string, memberList: ZIMCommunityMemberInfo[], nextFlag: number) => void
Callback of the result of querying the community member list.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
memberListZIMCommunityMemberInfo[]Community member list.
nextFlagnumberAnchor for the next community member list query.

ZIMCommunityMembersQueriedResult

Methods

onCommunityMembersQueried

onCommunityMembersQueried
type ZIMCommunityMembersQueriedResult = (communityID: string, memberList: ZIMCommunityMemberInfo[], errorUserList: ZIMErrorUserInfo[]) => void
Callback of the result of querying specific community members.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
memberListZIMCommunityMemberInfo[]List of queried community members.
errorUserListZIMErrorUserInfo[]List of users that failed to be queried.

ZIMCommunityChannelCreatedResult

Methods

onCommunityChannelCreated

onCommunityChannelCreated
type ZIMCommunityChannelCreatedResult = (channelInfo: ZIMCommunityChannelFullInfo) => void
Callback of the result of creating a community channel.

Parameters

NameTypeDescription
channelInfoZIMCommunityChannelFullInfoCommunity channel information.

ZIMCommunityChannelDismissedResult

Methods

onCommunityChannelDismissed

onCommunityChannelDismissed
type ZIMCommunityChannelDismissedResult = (communityID: string, channelID: string) => void
Callback of the result of dismissing a community channel.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringCommunity channel ID

ZIMCommunityChannelNameUpdatedResult

Methods

onCommunityChannelNameUpdated

onCommunityChannelNameUpdated
type ZIMCommunityChannelNameUpdatedResult = (communityID: string, channelID: string, channelName: string) => void
Callback of the result of updating the community channel name.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringCommunity channel ID
channelNamestringCommunity channel name.

ZIMCommunityChannelAvatarUrlUpdatedResult

Methods

onCommunityChannelAvatarUrlUpdated

onCommunityChannelAvatarUrlUpdated
type ZIMCommunityChannelAvatarUrlUpdatedResult = (communityID: string, channelID: string, channelAvatarUrl: string) => void
Callback of the result of updating the community channel avatar URL.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringCommunity channel ID
channelAvatarUrlstringCommunity avatar URL.

ZIMCommunityChannelNoticeUpdatedResult

Methods

onCommunityChannelNoticeUpdated

onCommunityChannelNoticeUpdated
type ZIMCommunityChannelNoticeUpdatedResult = (communityID: string, channelID: string, channelNotice: string) => void
Callback of the result of updating the community channel notice.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringCommunity channel ID
channelNoticestringCommunity channel notice.

ZIMCommunityChannelAttributesOperatedResult

Methods

onCommunityChannelAttributesOperated

onCommunityChannelAttributesOperated
type ZIMCommunityChannelAttributesOperatedResult = (communityID: string, channelID: string, errorKeys: string[]) => void
Callback of the result of operating community channel attributes.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringCommunity channel ID.
errorKeysstring[]Error keys.

ZIMCommunityChannelsInfoQueriedResult

Methods

onCommunityChannelsInfoQueried

onCommunityChannelsInfoQueried
type ZIMCommunityChannelsInfoQueriedResult = (communityID: string, channelInfos: ZIMCommunityChannelFullInfo[], errorChannelIDs: string[]) => void
Callback of the result of querying community channel information.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelInfosZIMCommunityChannelFullInfo[]List of queried community channels.
errorChannelIDsstring[]List of channel IDs that failed to be queried.

ZIMCommunityChannelListQueriedResult

Methods

onCommunityChannelListQueried

onCommunityChannelListQueried
type ZIMCommunityChannelListQueriedResult = (communityID: string, channelList: ZIMCommunityChannel[], nextFlag: number) => void
Callback of the result of querying the community channel list.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelListZIMCommunityChannel[]Community channel list.
nextFlagnumberAnchor for the next channel list query.

ZIMCommunityMembersMutedResult

Methods

onCommunityMembersMuted

onCommunityMembersMuted
type ZIMCommunityMembersMutedResult = (communityID: string, channelID: string, isMute: boolean, errorUserList: ZIMErrorUserInfo[]) => void
Callback of the result of muting community members.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
channelIDstringThe channel ID. Empty means muted at the community level.
isMutebooleanWhether to mute the members.
errorUserListZIMErrorUserInfo[]List of users that failed to be muted.

ZIMCommunityChannelsMutedResult

Methods

onCommunityChannelsMuted

onCommunityChannelsMuted
type ZIMCommunityChannelsMutedResult = (communityID: string, isMute: boolean, errorChannelIDs: string[]) => void
Callback of the result of muting community channels.

Parameters

NameTypeDescription
communityIDstringCommunity ID.
isMutebooleanWhether to mute the channels.
errorChannelIDsstring[]List of channel IDs that failed to be muted.

Previous

Class

Next

Enum

On this page

Back to top