setMessageExtra

public abstract void setMessageExtra(int messageId, String value, RongIMClient.ResultCallback<Boolean> callback)

Sets additional information for a local message.

Extends the usage scenarios of the message. After setting, messages with additional information can be retrieved via getHistoryMessages.Note: This can only be used locally and cannot be synchronized with remote users.

Parameters

messageId

The message ID.

value

Additional information, up to 1024 bytes.

callback

Callback indicating whether the setting was successful.