- Android
- iOS
- JavaScript
- Flutter
- ReactNative
Delete a conversation tag. Conversation tags apply only to the current user, and the SDK automatically synchronizes them to the user devices. When a tag is deleted, its conversations are removed from the tag automatically.
Parameters
| Name | Type | Required | Default | Description | Version |
|---|---|---|---|---|---|
| tagId | String | Yes | Tag ID. Developers can customize it; the maximum length is 64 characters. | 1.8.47 |
Code Example
JIM.getInstance().getConversationManager().destroyConversationTag("customTagId", new IConversationManager.ISimpleCallback() {
@Override
public void onSuccess() {
}
@Override
public void onError(int errorCode) {
}
});
Delete a conversation tag. Conversation tags apply only to the current user, and the SDK automatically synchronizes them to the user devices. When a tag is deleted, its conversations are removed from the tag automatically.
Parameters
| Name | Type | Required | Default | Description | Version |
|---|---|---|---|---|---|
| tagId | NSString | Yes | Tag ID. Developers can customize it; the maximum length is 64 characters. | 1.8.49 |
Code Example
[JIM.shared.conversationManager destroyConversationTag:@"customTagId"
success:^{
} error:^(JErrorCode code) {
}];
Delete a conversation tag. Conversation tags apply only to the current user, and the SDK automatically synchronizes them to the user devices. When a tag is deleted, its conversations are removed from the tag automatically.
Parameters
| Name | Type | Required | Default | Description | Version |
|---|---|---|---|---|---|
| tag | Object | Yes | Tag object | 1.7.5 | |
| tag.id | String | Yes | Tag ID. Developers can customize it; the maximum length is 64 characters. | 1.7.5 |
Success Callback
No parameters are returned. The callback indicates success when invoked.
Failure Callback
| Name | Type | Description | Version |
|---|---|---|---|
| error | Object | A status code is provided when sending fails. Check error.msg directly or see status codes. | 1.0.0 |
Code Example
let tag = {
id: 'tag_01'
};
jim.destroyConversationTag(tag).then(() => {
console.log('destroyConversationTag successfully')
}, (error) => {
console.log(error)
});
Not supported.
Not supported.