kango.ui.notifications

This API can be used to notify the user.

Note

To enable notifications add to extension_info.json file:

{
    "permissions": {
        "notifications": true
    }
}

Summary

Name Description
show Shows a notification

Methods

show

kango.ui.notifications.show(title, text, icon, onClick)

Shows a notification.

Arguments:
  • title (string) – notification title
  • text (string) – notification text
  • icon (string) – notification icon URL
  • onClick (function()) – callback function

Example:

kango.ui.notifications.show('Notification title', 'Notification text', 'http://kangoextensions.com/images/logos/kango.png', function() {
    kango.console.log('Notification click');
});