IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMAdvancedMsgListenerabstract
Swift - V2TIMAdvancedMsgListener
Swift

Protocol V2TIMAdvanced​Msg​Listener

public protocol V2TIMAdvancedMsgListener: AnyObject  

Definition of V2TIMAdvancedMsgListener

V2TIMAdvancedMsgListener V2TIMAdvancedMsgListener AnyObject AnyObject V2TIMAdvancedMsgListener->AnyObject

Conforms To

AnyObject

Requirements

on​Recv​New​Message(msg:​)

func onRecvNewMessage(msg: V2TIMMessage) 

Received a new message

on​Recv​Message​Read​Receipts(receipt​List:​)

func onRecvMessageReadReceipts(receiptList: Array<V2TIMMessageReceipt>) 

If the message you send supports read receipts, and the message receiver calls sendMessageReadReceipts, you will receive this notification.

on​Recv​C2CRead​Receipt(receipt​List:​)

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.

on​Recv​Message​Revoked(msg​ID:​operate​User:​reason:​)

func onRecvMessageRevoked(msgID: String, operateUser: V2TIMUserInfo, reason: String?) 

Message recall notification (Supported only in 7.4 and later versions)

on​Recv​Message​Modified(msg:​)

func onRecvMessageModified(msg: V2TIMMessage) 

Message content modified

on​Recv​Message​Extensions​Changed(msg​ID:​extensions:​)

func onRecvMessageExtensionsChanged(msgID: String, extensions: Array<V2TIMMessageExtension>) 

Message extension changed

on​Recv​Message​Extensions​Deleted(msg​ID:​extension​Keys:​)

func onRecvMessageExtensionsDeleted(msgID: String, extensionKeys: Array<String>) 

Message extension deleted

on​Recv​Message​Reactions​Changed(change​List:​)

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.

on​Group​Message​Pinned(group​ID:​message:​is​Pinned:​op​User:​)

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.

on​Recv​Message​Revoked(msg​ID:​)

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