createNotification()

The function creates a notification.

Synopsis

int createNotification(mapping options);

Parameter

Parameter Description
options The notification that is shown.

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 root;
   dyn_string child_dyn;

   child_dyn[1] = "This is";
   child_dyn[2] = "a";
   child_dyn[3] = "Notification";

   root["c1"] = child_dyn;
   int i = createNotification(root);

   DebugN(i);
   DebugN(root["c1"]);
}

Assignment

Miscellaneous functions

Availability

UI