Skip to main content

getJoinedGroupListPage

Description

info

Get the list of joined groups with pagination. offset is the start index, and count is the number to fetch.

Note

The count should not be too large, otherwise the request time will be too long.

Function Prototype


- (void)getJoinedGroupListPageWithOffset:(NSInteger)offset
count:(NSInteger)count
onSuccess:(nullable OIMGroupsInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
offsetintYesStart index for paginated pull
countintYesNumber of items to pull per page

Return Result

Parameter NameParameter TypeDescription
onSuccessNSArray< OIMGroupInfo *>Success
onFailureOIMFailureCallbackFailure

Code Example


[OIMManager.manager getJoinedGroupListWithOffset:
count:
onSuccess:^(NSArray<OIMGroupInfo *> * _Nullable groupsInfo) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];