Skip to main content

getAllConversationList

Function Introduction

Description

Retrieve all conversation lists.

Note

If the conversation list is too long, it is recommended to use getConversationListSplit for pagination.

Function Prototype


- (void)getAllConversationListWithOnSuccess:(nullable OIMConversationsInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

None

Return Results

NameTypeDescription
onSuccessNSArray< OIMConversationInfo *>Successful return
onFailureOIMFailureCallbackFailure return

Code Example


[OIMManager.manager getAllConversationListWithOnSuccess:^(NSArray<OIMConversationInfo *> * _Nullable conversations) {

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

}];