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.
V2TIMUserSearchParam

Public Member Functions

void setKeywordList (List< String > keywordList)
 
void setKeywordListMatchType (int type)
 
void setGender (int gender)
 
void setMinBirthday (int minBirthday)
 
void setMaxBirthday (int maxBirthday)
 
void setSearchCount (int searchCount)
 
void setSearchCursor (String searchCursor)
 

Static Public Attributes

static final int V2TIM_GENDER_UNKNOWN = 0
 
static final int V2TIM_GENDER_MALE = 1
 
static final int V2TIM_GENDER_FEMALE = 2
 
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

Specify the keywords (max 5), the keyword will automatically match the user ID and nickname.

◆ 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.

◆ setGender()

void setGender ( int  gender)
inline

Set gender (if not set, both male and female are returned by default)

◆ setMinBirthday()

void setMinBirthday ( int  minBirthday)
inline

Set minimum birthday (if not set, the default value is 0)

◆ setMaxBirthday()

void setMaxBirthday ( int  maxBirthday)
inline

Set maximum birthday (if not set, all users with birthday >= minBirthday will be returned by default)

◆ setSearchCount()

void setSearchCount ( int  searchCount)
inline

Set the count of users 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 V2TIMUserSearchResult.

Field Documentation

◆ V2TIM_GENDER_UNKNOWN

final int V2TIM_GENDER_UNKNOWN = 0
static

◆ V2TIM_GENDER_MALE

final int V2TIM_GENDER_MALE = 1
static

◆ V2TIM_GENDER_FEMALE

final int V2TIM_GENDER_FEMALE = 2
static

◆ 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