#import <AgoraChatContactManagerDelegate.h>
The contact related callbacks.
◆ 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
-
aUsername | The 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
-
aUsername | The 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
-
aUsername | Friend request sender user ID |
aMessage | Friend 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
-
aUsername | Another 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
-
aUsername | The user who unfriended the current user |
The documentation for this protocol was generated from the following file: