Skip to main content
Version: 5.11.4

Message/Mail Function Handlers

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

  • New message received
  • New user mail received

OnReceivedMessage

public OnNotification OnReceivedMessage;

Description

This handler is called when a new message is received.

Example

Backend.Notification.OnReceivedMessage = () => {
Debug.Log("You have a new message!");
};

OnReceivedUserPost

public OnNotification OnReceivedUserPost;

Description

This handler is called when new user mail is received.

Example

Backend.Notification.OnReceivedUserPost = () => {
Debug.Log("You have new user mail!");
};