API Overview
Message Callbacks
Status Codes
- Android
- iOS
- JavaScript
- Flutter
- ReactNative
Get the total unread message count for all conversations in a tag.
API Definition
/**
* get the total message unread count by tag ID
* @param tagId tag ID
* @return total message unread count
*/
int getUnreadCountWithTag(String tagId);
Get the list of conversations in a tag. Pagination is supported.
API Definition
/// get the total message unread count by tag ID
/// - Parameter tagId: tag ID
- (int)getUnreadCountWithTag:(NSString *)tagId;
Not supported.
Not supported.
Get the total unread message count for all conversations in a tag.
API Definition
/**
* get the unread message count for a tag
* @param conversationTypes optional conversation-type list
*/
getUnreadCountWithTypes(conversationTypes?: number[]): Promise<number>;
Code Example
import JuggleIM from 'juggleim-rnsdk';
// get the total unread count for all conversations
const count = await JuggleIM.getUnreadCountWithTypes();
// get the total unread count for specified conversation types
const count = await JuggleIM.getUnreadCountWithTypes([1]);