Skip to main content

setGroupListener

Feature Introduction

Description

Set the group event listener to asynchronously notify related group changes, allowing the UI to perceive and handle them promptly.

Note

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

Function Prototype


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

Return Result

Parameter NameParameter TypeDescription
listenerid < GroupListener >Required

Code Example


[OIMManager.callbacker addGroupListener:self];