Browse SDKs · iOS
SDKsiOS

Search groups

Search locally synchronized joined groups on iOS.

Copy
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]; }];

This method searches only joined groups already synchronized to local storage. It is not a public group directory.