Skip to main content
Version: 5.9.6

OnNotification

public NotificationEventHandler OnNotification;

Argument

ValueTypeDescription
argsNotificationEventArgsInformation on sent messages in BACKND Console > BACKND Chat > Announcement Management

NotificationEventArgs

ValueTypeDescription
SubjectstringThe subject of the announcement message sent from the console
MessagestringThe content of the announcement message sent from the console

Description

This is a handler that calls back the announcement messages sent through BACKND Console > BACKND Chat > Announcement Management > Send Announcements.

In order for an event to be called, the message sending/receiving method must be called.

Example

// First way
Backend.Chat.OnNotification = (NotificationEventArgs args) =>
{
Debug.Log(string.Format("Title : {0} / Content : {1}", args.Subject, args.Message));
};

// Second way
Backend.Chat.OnNotification += (args) => {
// Same logic as the first way
}