Skip to main content

getTotalUnreadMsgCount

Feature Introduction

Note

Get the total unread count of all conversations.

Function Prototype


- (void)getTotalUnreadMsgCountWithOnSuccess:(nullable OIMNumberCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

None

Return Value

NameTypeDescription
onSuccessOIMNumberCallbackSuccessful Return
onFailureOIMFailureCallbackFailed Return

Code Sample


[OIMManager.manager getTotalUnreadMsgCountWithOnSuccess:^(NSInteger number) {

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

}];