Chat SDK for Unity and Windows v1.2.0
|
Public Member Functions | |
void | OnMessagesReceived (List< Message > messages) |
void | OnCmdMessagesReceived (List< Message > messages) |
void | OnMessagesRead (List< Message > messages) |
void | OnMessagesDelivered (List< Message > messages) |
void | OnMessagesRecalled (List< Message > messages) |
void | OnReadAckForGroupMessageUpdated () |
void | OnGroupMessageRead (List< GroupReadAck > list) |
void | OnConversationsUpdate () |
void | OnConversationRead (string from, string to) |
void | MessageReactionDidChange (List< MessageReactionChange > list) |
void | OnMessageContentChanged (Message msg, string operatorId, long operationTime) |
The chat manager callback interface.
void AgoraChat.IChatManagerDelegate.OnMessagesReceived | ( | List< Message > | messages | ) |
Occurs when a messages is received.
This callback is triggered to notify the user when a message such as a text, image, video, voice, geographical location, or file is received.
messages | The received message(s). |
void AgoraChat.IChatManagerDelegate.OnCmdMessagesReceived | ( | List< Message > | messages | ) |
Occurs when a command message is received.
Unlike onMessageReceived(List)
, this callback is triggered only by the reception of a command message that is usually invisible to users.
messages | The received command message(s). |
void AgoraChat.IChatManagerDelegate.OnMessagesRead | ( | List< Message > | messages | ) |
Occurs when a read receipt is received for a message.
messages | The read message(s). |
void AgoraChat.IChatManagerDelegate.OnMessagesDelivered | ( | List< Message > | messages | ) |
Occurs when a delivery receipt is received.
messages | The delivered message(s). |
void AgoraChat.IChatManagerDelegate.OnMessagesRecalled | ( | List< Message > | messages | ) |
Occurs when a received message is recalled.
messages | The recalled message(s). |
void AgoraChat.IChatManagerDelegate.OnReadAckForGroupMessageUpdated | ( | ) |
Occurs when the read status updates of a group message is received.
void AgoraChat.IChatManagerDelegate.OnGroupMessageRead | ( | List< GroupReadAck > | list | ) |
Occurs when a read receipt is received for a group message.
list | The read receipt(s) for group message(s). |
void AgoraChat.IChatManagerDelegate.OnConversationsUpdate | ( | ) |
Occurs when the number of conversations changes.
void AgoraChat.IChatManagerDelegate.OnConversationRead | ( | string | from, |
string | to | ||
) |
Occurs when the read receipt is received for a conversation.
This callback occurs in either of the following scenarios:
The message is read by the recipient (The read receipt for the conversation is sent).
Upon receiving this event, the SDK sets the isAcked
attribute of the messages in the conversation to true
in the local database.
0
. In this case, the callback occurs on the other devices where the SDK will set isRead
attribute of the messages in the conversation to true
in the local database.from | The ID of the user who sends the read receipt. |
to | The ID of the user who receives the read receipt. |
void AgoraChat.IChatManagerDelegate.MessageReactionDidChange | ( | List< MessageReactionChange > | list | ) |
Occurs when the reactions changed.
list | The changed reaction list. |
void AgoraChat.IChatManagerDelegate.OnMessageContentChanged | ( | Message | msg, |
string | operatorId, | ||
long | operationTime | ||
) |
Occurs when a sent message is modified.
Message | The modified message object, where the message body contains the information such as the number of message modifications, the operator of the last modification, and the last modification time. Also, you can get the operator of the last message modification and the last modification time via the onMessageContentChanged method. |
operatorId | The user ID of the operator that modified the message last time. |
operationTime | The last message modification time. It is a UNIX timestamp in milliseconds. |