AgoraChatSDK 1.2.0
Instance Methods | List of all members
<AgoraChatContactManagerDelegate> Protocol Reference

#import <AgoraChatContactManagerDelegate.h>

Inheritance diagram for <AgoraChatContactManagerDelegate>:

Instance Methods

(void) - friendRequestDidApproveByUser:
 
(void) - friendRequestDidDeclineByUser:
 
(void) - friendshipDidRemoveByUser:
 
(void) - friendshipDidAddByUser:
 
(void) - friendRequestDidReceiveFromUser:message:
 

Detailed Description

The contact related callbacks.

Method Documentation

◆ friendRequestDidApproveByUser:

- (void) friendRequestDidApproveByUser: (NSString *_Nonnull)  aUsername
optional

Occurs when a friend request is approved, user A will receive this callback after user B approved user A's friend request.

Parameters
aUsernameThe user ID who approves a friend's request.

◆ friendRequestDidDeclineByUser:

- (void) friendRequestDidDeclineByUser: (NSString *_Nonnull)  aUsername
optional

Occurs when a friend request is declined.

User A will receive this callback after user B declined user A's friend request.

Parameters
aUsernameThe user ID who declined a friend request.

◆ friendRequestDidReceiveFromUser:message:

- (void) friendRequestDidReceiveFromUser: (NSString *_Nonnull)  aUsername
message: (NSString *_Nullable)  aMessage 
optional

Occurs when a user received a friend request.

User A will receive this callback when received a friend request from user B.

Parameters
aUsernameFriend request sender user ID
aMessageFriend request message

◆ friendshipDidAddByUser:

- (void) friendshipDidAddByUser: (NSString *_Nonnull)  aUsername
optional

Occurs when the user is added as a contact by another user.

Both user A and B will receive this callback after User B agreed user A's add-friend invitation.

Parameters
aUsernameAnother user of the user‘s friend relationship.

◆ friendshipDidRemoveByUser:

- (void) friendshipDidRemoveByUser: (NSString *_Nonnull)  aUsername
optional

Occurs when a user is removed as a contact by another user.

User A and B both will receive this callback after User B unfriended user A.

Parameters
aUsernameThe user who unfriended the current user

The documentation for this protocol was generated from the following file: