Notifications

These APIs allow you to add notifications to the log.

create_notification(string)

Usage

create_notification('my notification')

Returns

True if the notification has been added or False if it failed.

create_notification_item(string, id)

This function will allow you to have an icon for an item show up in the notification window. The ID is the model of the item.

Usage

create_notification('my notification', 69)

Returns

True if the notification has been added or False if it failed.

Last updated