Skip to main content

setGroupListener

Description

info

Set the group event listener to perform asynchronous callback notifications for group changes so that the UI can sense and handle them in a timely manner.

Note

(1) Call it immediately after initSDK;
(2) It can only be called once.

Function Prototype

- (void)addGroupListener:(id<OIMGroupListener>)listener NS_SWIFT_NAME(addGroupListener(listener:));

Return Result

Parameter NameParameter TypeDescription
listenerid < GroupListener >Yes

Code Example

[OIMManager.callbacker addGroupListener:self];