SDKsAndroid
Set conversation extra data
Use setConversationEx() to set an Android conversation extension string.
ex is a complete string. The SDK does not merge JSON, so read the prior value and retain namespaces owned by other application modules.
OpenIMClient.getInstance().conversationManager.setConversationEx(
new OnBase<String>() {
@Override
public void onSuccess(String data) {
markConversationExtensionSubmitted(conversationID);
}
@Override
public void onError(int code, String error) {
recordConversationExtensionFailure(code, error);
}
},
conversationID,
mergedExtensionJSON
);Reconcile the result through onConversationChanged by conversationID; listener ownership is documented in Get the conversation list.
Was this page helpful?