Skip to main content

setFriendListener

Feature Introduction

Description

Set the relationship chain event listener. For related events of relationship changes, asynchronous callback notifications are provided, so 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 Results

None

Code Example


[OIMManager.callbacker addFriendListener:self];