Protocol
V2TIMAdvancedMsgListener
public protocol V2TIMAdvancedMsgListener: AnyObject
Definition of V2TIMAdvancedMsgListener
Relationships
Conforms To
AnyObject
Requirements
onRecvMessageReadReceipts(receiptList:)
func onRecvMessageReadReceipts(receiptList: Array<V2TIMMessageReceipt>)
If the message you send supports read receipts, and the message receiver calls sendMessageReadReceipts, you will receive this notification.
onRecvC2CReadReceipt(receiptList:)
func onRecvC2CReadReceipt(receiptList: Array<V2TIMMessageReceipt>)
If the other party calls cleanConversationUnreadMessageCount to clean up one-to-one unread message count, you will receive this callback, which will only carry the other party's userID and the timestamp for cleaning up unread message count.
onRecvMessageRevoked(msgID:operateUser:reason:)
func onRecvMessageRevoked(msgID: String, operateUser: V2TIMUserInfo, reason: String?)
Message recall notification (Supported only in 7.4 and later versions)
onRecvMessageModified(msg:)
func onRecvMessageModified(msg: V2TIMMessage)
Message content modified
onRecvMessageExtensionsChanged(msgID:extensions:)
func onRecvMessageExtensionsChanged(msgID: String, extensions: Array<V2TIMMessageExtension>)
Message extension changed
onRecvMessageExtensionsDeleted(msgID:extensionKeys:)
func onRecvMessageExtensionsDeleted(msgID: String, extensionKeys: Array<String>)
Message extension deleted
onRecvMessageReactionsChanged(changeList:)
func onRecvMessageReactionsChanged(changeList: Array<V2TIMMessageReactionChangeInfo>)
Message reaction changed.
This callback is an additional callback for message reactions. It only contains the information of changed reactions. If the field totalUserCount in the callback is 0, it means that no users are using the reaction, and you can remove it from the UI.
onGroupMessagePinned(groupID:message:isPinned:opUser:)
func onGroupMessagePinned(groupID: String, message: V2TIMMessage, isPinned: Bool, opUser: V2TIMGroupMemberInfo)
Receive notification of changes to the pinned group message list
If the change type is "unpin", the "message" parameter only contains the key of the message, without the complete message body.
onRecvMessageRevoked(msgID:)
@available(*, deprecated, message: "Use onRecvMessageRevoked(msgID:operateUser:reason:) instead")
func onRecvMessageRevoked(msgID: String)
Received a message recall notification (This is to be deprecated. Please use onRecvMessageRevoked(msgID:operateUser:reason:) instead )