Skip to main content

setFriendListener

Description

info

Set the relationship chain event listener to asynchronously callback and notify related events of relationship chain changes, so that the UI can perceive and process them in a timely manner.

Note

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

Function Prototype

- (void)addFriendListener:(id<OIMFriendshipListener>)listener NS_SWIFT_NAME(addFriendListener(listener:));

Input Parameters

Parameter NameParameter TypeRequiredDescription
listenerid < OIMFriendshipListener >Yes

Return Result

None

Code Example

[OIMManager.callbacker addFriendListener:self];