Skip to main content

getConversationListSplit

Description

info

Get a list of conversations with pagination.

Function Prototype


- (void)getConversationListSplitWithOffset:(NSInteger)offset
count:(NSInteger)count
onSuccess:(nullable OIMConversationsInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
offsetNSIntegerYesStart index for paginated fetch
countNSIntegerYesNumber of items per page

Return Result

NameTypeDescription
onSuccessNSArray< OIMConversationInfo *>Success return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager getConversationListSplitWithOffset:0
count:20
onSuccess:^(NSArray<OIMConversationInfo *> * _Nullable conversations) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];