IMSDK
IM features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication. It also provides complete app access and backend management APIs.
V2TIMGroupSearchParam

Public Member Functions

void setKeywordList (List< String > keywordList)
 
void setSearchGroupID (boolean isSearchGroupID)
 
void setSearchGroupName (boolean isSearchGroupName)
 
void setKeywordListMatchType (int type)
 
void setSearchCount (int searchCount)
 
void setSearchCursor (String searchCursor)
 

Static Public Attributes

static final int V2TIM_KEYWORD_LIST_MATCH_TYPE_OR = 0
 
static final int V2TIM_KEYWORD_LIST_MATCH_TYPE_AND = 1
 

Member Function Documentation

◆ setKeywordList()

void setKeywordList ( List< String >  keywordList)
inline

Set keyword list to search (max 5) You need to specifiy which fields(group id or group name) to be matched with the keyword list in local search. All fields(group id and group name) will be matched with the keyword list in cloud search.

◆ setSearchGroupID()

void setSearchGroupID ( boolean  isSearchGroupID)
inline

Set whether to search by group ID (only valid for local search)

◆ setSearchGroupName()

void setSearchGroupName ( boolean  isSearchGroupName)
inline

Set whether to search by group name (only valid for local search)

◆ setKeywordListMatchType()

void setKeywordListMatchType ( int  type)
inline

Set whether to combine the keywords with OR (V2TIM_KEYWORD_LIST_MATCH_TYPE_OR) or AND (V2TIM_KEYWORD_LIST_MATCH_TYPE_AND). The default is OR (only valid for cloud search)

◆ setSearchCount()

void setSearchCount ( int  searchCount)
inline

Set the count of groups returned per cloud search (must be greater than 0, maximum supported is 100, default is 20, only valid for cloud search)

◆ setSearchCursor()

void setSearchCursor ( String  searchCursor)
inline

Set the starting position for a cloud search. For the first call, leave the parameter empty. For subsequent calls, pass in the value of searchCursor in V2TIMGroupSearchResult (only valid for cloud search)

Field Documentation

◆ V2TIM_KEYWORD_LIST_MATCH_TYPE_OR

final int V2TIM_KEYWORD_LIST_MATCH_TYPE_OR = 0
static

◆ V2TIM_KEYWORD_LIST_MATCH_TYPE_AND

final int V2TIM_KEYWORD_LIST_MATCH_TYPE_AND = 1
static