Skip to main content

getConversationListSplit

Function Introduction

Description

Retrieve the conversation list in a paginated manner.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
offsetNSIntegerYesStarting index for pagination
countNSIntegerYesNumber of items per page

Return Results

NameTypeDescription
onSuccessNSArray< OIMConversationInfo *>Successful return
onFailureOIMFailureCallbackFailed return

Code Example


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

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

}];