浏览 SDKs · iOS
SDKsiOS

搜索群组

搜索 iOS 本地已加入群组。

复制
OIMSearchGroupParam *param = [OIMSearchGroupParam new];
param.keywordList = @[keyword];
param.isSearchGroupID = YES;
param.isSearchGroupName = YES;
[[OIMManager manager] searchGroups:param
    onSuccess:^(NSArray<OIMGroupInfo *> *groups) { [self showMatches:groups]; }
    onFailure:^(NSInteger code, NSString *message) { [self showErrorCode:code message:message]; }];

该方法只搜索已经同步到本地的已加入群组,不是公开群目录。