Skip to main content

setConversationListener

Feature Introduction

Description

Set the conversation listener, including new conversations, conversation data changes, etc., for asynchronous notifications to the UI layer.

Note

(1) Call immediately after initSDK; (2) Can only be called once.

Function Prototype


- (void)addConversationListener:(id<OIMConversationListener>)listener NS_SWIFT_NAME(addConversationListener(listener:));

Return Result

Parameter NameParameter TypeDescription
listenerid < ConversationListener >Yes

Code Example


[OIMManager.callbacker addConversationListener:self];