Skip to main content

setConversationListener

Description​

info

Set a conversation listener to asynchronously notify the UI layer of new conversations, conversation data changes, etc.

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];