createNotification()
The function creates a notification.
Synopsis
int createNotification(mapping options);
Parameter
Parameter | Description |
---|---|
options | The notification that is shown. The following option keys are
currently possible:
|
Return Value
The function returns 0 when a notification could be created and -1 when not.
Description
The function creates a notification.
Example
main(mapping event)
{
mapping options;
options["title"] = "Important Notification";
options["text"] = "This is the text of the notification!";
options["time"] = "2015.10.21 23:58:00.000";
DebugN(options);
createNotification(options);
}
Assignment
Availability
UI