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.

Public Member Functions

void onRecvNewMessage (V2TIMMessage msg)
void onRecvMessageReadReceipts (List< V2TIMMessageReceipt > receiptList)
void onRecvC2CReadReceipt (List< V2TIMMessageReceipt > receiptList)
void onRecvMessageRevoked (String msgID, V2TIMUserFullInfo operateUser, String reason)
void onRecvMessageModified (V2TIMMessage msg)
void onRecvMessageExtensionsChanged (String msgID, List< V2TIMMessageExtension > extensions)
void onRecvMessageExtensionsDeleted (String msgID, List< String > extensionKeys)
void onRecvMessageReactionsChanged (List< V2TIMMessageReactionChangeInfo > changeInfos)
void onRecvMessageRevoked (String msgID)

Member Function Documentation

◆ onRecvNewMessage()

void onRecvNewMessage ( V2TIMMessage  msg)

Received a new message


◆ onRecvMessageReadReceipts()

void onRecvMessageReadReceipts ( List< V2TIMMessageReceipt receiptList)

Notification of message read receipt(If the message sent by yourself supports read receipts, the message receiver calls sendMessageReadReceipts, and you will receive the notification)

◆ onRecvC2CReadReceipt()

void onRecvC2CReadReceipt ( List< V2TIMMessageReceipt receiptList)

C2C peer user conversation read notification(If the peer user calls the markC2CMessageAsRead interface, you will receive the callback, and the callback will only carry the peer userID and peer read timestamp information)

◆ onRecvMessageRevoked() [1/2]

void onRecvMessageRevoked ( String  msgID,
V2TIMUserFullInfo  operateUser,
String  reason 

Received a message recall notification (Supported only in 7.4 and later versions)

msgIDUnique ID of a message
operateUserOperator info
reasonReason of recall

◆ onRecvMessageModified()

void onRecvMessageModified ( V2TIMMessage  msg)

Message content modified

◆ onRecvMessageExtensionsChanged()

void onRecvMessageExtensionsChanged ( String  msgID,
List< V2TIMMessageExtension extensions 

Message extension changed

◆ onRecvMessageExtensionsDeleted()

void onRecvMessageExtensionsDeleted ( String  msgID,
List< String >  extensionKeys 

Message extension deleted

◆ onRecvMessageReactionsChanged()

void onRecvMessageReactionsChanged ( List< V2TIMMessageReactionChangeInfo changeInfos)

Message reaction changed This callback is an incremental callback for message reactions, and will only contain the changed reactions information. When the totalUserCount value in the changed reaction is 0, it means that no users are using the reaction, and you can remove the display of the reaction on the UI.

◆ onRecvMessageRevoked() [2/2]

void onRecvMessageRevoked ( String  msgID)

Received a message recall notification (It is deprecated and discouraged to use this callback. Please use onRecvMessageRevoked(String, V2TIMUserFullInfo, String) instead )

msgIDUnique ID of a message