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

Properties

NSArray< NSString * > * keywordList
 
V2TIMKeywordListMatchType keywordListMatchType
 
V2TIMGender gender
 
uint32_t minBirthday
 
uint32_t maxBirthday
 
NSUInteger searchCount
 
NSString * searchCursor
 

Property Documentation

◆ keywordList

- (NSArray<NSString *>*) keywordList
readwritenonatomicstrong

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

◆ keywordListMatchType

- (V2TIMKeywordListMatchType) keywordListMatchType
readwritenonatomicassign

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.

◆ gender

- (V2TIMGender) gender
readwritenonatomicassign

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

◆ minBirthday

- (uint32_t) minBirthday
readwritenonatomicassign

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

◆ maxBirthday

- (uint32_t) maxBirthday
readwritenonatomicassign

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

◆ searchCount

- (NSUInteger) searchCount
readwritenonatomicassign

The count of users returned per cloud search (must be greater than 0, maximum supported is 100, default is 20)

◆ searchCursor

- (NSString*) searchCursor
readwritenonatomicstrong

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.