Chat SDK for Unity and Windows v1.2.0
Public Member Functions | List of all members
AgoraChat.IContactManagerDelegate Interface Reference

Public Member Functions

void OnContactAdded (string userId)
 
void OnContactDeleted (string userId)
 
void OnContactInvited (string userId, string reason)
 
void OnFriendRequestAccepted (string userId)
 
void OnFriendRequestDeclined (string userId)
 

Detailed Description

The contact manager callback interface.

Member Function Documentation

◆ OnContactAdded()

void AgoraChat.IContactManagerDelegate.OnContactAdded ( string  userId)

Occurs when a user is added as a contact.

Parameters
userIdThe user ID of the new contact.

◆ OnContactDeleted()

void AgoraChat.IContactManagerDelegate.OnContactDeleted ( string  userId)

Occurs when a user is removed from a contact list.

Parameters
userIdThe user ID of the removed contact.

◆ OnContactInvited()

void AgoraChat.IContactManagerDelegate.OnContactInvited ( string  userId,
string  reason 
)

Occurs when a user receives a friend request.

Parameters
userIdThe ID of the user who initiates the friend request.
reasonThe invitation message.

◆ OnFriendRequestAccepted()

void AgoraChat.IContactManagerDelegate.OnFriendRequestAccepted ( string  userId)

Occurs when a friend request is approved.

Parameters
userIdThe ID of the user who initiates the friend request.

◆ OnFriendRequestDeclined()

void AgoraChat.IContactManagerDelegate.OnFriendRequestDeclined ( string  userId)

Occurs when a friend request is declined.

Parameters
userIdThe ID of the user who initiates the friend request.