SDKsAndroidEnterprise
Modify a message
Modify supported message content and handle modification events received by other clients.
Use modifyMessage to change an existing message in a conversation. Normally, start with the original message, change the supported content, and preserve its other fields.
messageManager.modifyMessage(callback, modifyRequest);The success callback means that the modification request completed.
After a message is modified, other clients receive the complete modified Message through OnAdvanceMsgListener.onMessageModified:
@Override
public void onMessageModified(Message message) {
// message is the modified message.
}MessageManager can retain only one OnAdvanceMsgListener. If the application handles other message events, implement their callbacks in the same listener. See Events for setup.
Was this page helpful?