Skip to main content

Add a conversation tag. Conversation tags apply only to the current user, and the SDK automatically synchronizes them to the user devices.

Parameters

NameTypeRequiredDefaultDescriptionVersion
tagIdStringYesTag ID. Developers can customize it; the maximum length is 64 characters.1.8.47
tagNameStringYesTag name. Developers can customize it; the maximum length is 64 characters.1.8.47

Code Example

JIM.getInstance().getConversationManager().createConversationTag("customTagId", "customTagName", new IConversationManager.ISimpleCallback() {
@Override
public void onSuccess() {

}

@Override
public void onError(int errorCode) {

}
});