- Android
- iOS
- JavaScript
- Flutter
- ReactNative
Get the list of tags created by the current user.
API Reference
/**
* Get the cached conversation-tag list (cached data may not be the latest version; use it to render the UI immediately for a better user experience).
* @return conversation-tag list
*/
List<ConversationTagInfo> getCachedConversationTagList();
/**
* get the conversation-tag list (synchronize the latest list from the server)
* @param callback result callback
*/
void getConversationTagList(JIMConst.IResultListCallback<ConversationTagInfo> callback);
Get the list of tags created by the current user.
API Reference
/// Get the cached conversation-tag list (cached data may not be the latest version; use it to render the UI immediately for a better user experience).
- (NSArray <JConversationTagInfo *> *)getCachedConversationTagList;
/// get the conversation-tag list (synchronize the latest list from the server)
/// - Parameters:
/// - successBlock: success callback
/// - errorBlock: failure callback
- (void)getConversationTagList:(void (^)(NSArray <JConversationTagInfo *> *tagInfoList))successBlock
error:(void (^)(JErrorCode code))errorBlock;
Get the list of tags created by the current user.

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
jim.getConversationTags().then(({ tags }) => {
/* tags => [{ id: 'tag_01', name: 'My Favorites' }, ... ] */
}, (error) => {
console.log(error)
});
Not supported.
Not supported.