SDKsiOS
Retrieve specified group profiles
Retrieve iOS group profiles by group ID.
A group query only establishes a snapshot at call time and does not trigger the group delegate. Public group discovery, cross-application directories, and complex permission filtering should be provided by your application backend. SDK queries target known groups and groups joined by the current account.
[[OIMManager manager] getSpecifiedGroupsInfo:@[groupID]
onSuccess:^(NSArray<OIMGroupInfo *> *groups) { [self renderGroup:groups.firstObject]; }
onFailure:^(NSInteger code, NSString *message) { [self showErrorCode:code message:message]; }];The success callback returns an array of matching OIMGroupInfo objects. Even when retrieving one group, pass an array and check its first item. Subsequent increments are handled by the stable delegate on Groups overview.
Was this page helpful?