Skip to main content
Version: 5.11.4

Friend Request Handlers

These tasks are processed asynchronously, and events related to friend functions are called back using the event handlers below.
The following events generate real-time notifications:

  • Friend request received
  • Friend request accepted
  • Friend request declined

OnReceivedFriendRequest

public OnNotification OnReceivedFriendRequest;

Description

This handler is called when a friend request is received.

Example

Backend.Notification.OnReceivedFriendRequest= () => {
Debug.Log("You have a new friend request!");
};

OnAcceptedFriendRequest

public OnNotification OnAcceptedFriendRequest;

Description

This handler is called when a friend request is accepted.

Example

Backend.Notification.OnAcceptedFriendRequest= () => {
Debug.Log("Your friend request was accepted!");
};

OnRejectedFriendRequest

public OnNotification OnRejectedFriendRequest;

Description

This handler is called when a friend request is declined.

Example

Backend.Notification.OnRejectedFriendRequest= () => {
Debug.Log("Your friend request was declined...");
};