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

Properties

NSArray< NSString * > * keywordList
 
BOOL isSearchGroupID
 
BOOL isSearchGroupName
 
V2TIMKeywordListMatchType keywordListMatchType
 
NSUInteger searchCount
 
NSString * searchCursor
 

Property Documentation

◆ keywordList

- (NSArray<NSString *>*) keywordList
readwritenonatomicstrong

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.

◆ isSearchGroupID

- (BOOL) isSearchGroupID
readwritenonatomicassign

Whether to search by group ID (only valid for local search)

◆ isSearchGroupName

- (BOOL) isSearchGroupName
readwritenonatomicassign

Whether to search by group name (only valid for local search)

◆ 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 (only valid for cloud search)

◆ searchCount

- (NSUInteger) searchCount
readwritenonatomicassign

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)

◆ 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 V2TIMGroupSearchResult (only valid for cloud search)