IMSDK
即时通信 IM 提供全球接入、单聊、群聊、消息推送、资料关系链托管、账号鉴权等全方位解决方案,并提供完备的 App 接入、后台管理接口。
V2TIMGroupSearchParam

属性

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

属性说明

◆ keywordList

- (NSArray<NSString *>*) keywordList
readwritenonatomicstrong

搜索关键字列表,最多支持5个。 如果是本地搜索,您需主动设置 keyword 是否匹配群 ID、群名称。 如果是云端搜索,keyword 会自动匹配群 ID、群名称。

◆ isSearchGroupID

- (BOOL) isSearchGroupID
readwritenonatomicassign

设置是否搜索群 ID(仅本地搜索有效)

◆ isSearchGroupName

- (BOOL) isSearchGroupName
readwritenonatomicassign

设置是否搜索群名称(仅本地搜索有效)

◆ keywordListMatchType

- (V2TIMKeywordListMatchType) keywordListMatchType
readwritenonatomicassign

指定关键字列表匹配类型,可设置为“或”关系搜索或者“与”关系搜索(仅云端搜索有效) 取值分别为 V2TIM_KEYWORD_LIST_MATCH_TYPE_OR 和 V2TIM_KEYWORD_LIST_MATCH_TYPE_AND,默认为“或”关系搜索。

◆ searchCount

- (NSUInteger) searchCount
readwritenonatomicassign

设置每次云端搜索返回结果的条数(必须大于 0,最大支持 100,默认 20,仅云端搜索有效)

◆ searchCursor

- (NSString*) searchCursor
readwritenonatomicstrong

设置每次云端搜索的起始位置。第一次填空字符串,续拉时填写 V2TIMGroupSearchResult 中的返回值(仅云端搜索有效)