OnNotification
public NotificationEventHandler OnNotification;
Argument
Value | Type | Description |
---|---|---|
args | NotificationEventArgs | Information on sent messages in BACKND Console > BACKND Chat > Announcement Management |
NotificationEventArgs
Value | Type | Description |
---|---|---|
Subject | string | The subject of the announcement message sent from the console |
Message | string | The 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
}