BlockerNotifier

BlockerNotifier

Blocker's notification sender.

Constructor

new BlockerNotifier(icons)

Source:
Parameters:
Name Type Description
icons BlockerIcons_ the icons for the notifications.

Classes

BlockerNotifier

Members

_icons :BlockerIcons_

Source:
Type:
  • BlockerIcons_

Methods

(protected) _notify(title, body, gicon) → {void}

Description:
  • Sends a notification.
Source:
Parameters:
Name Type Description
title string the notification title.
body string the notification body text.
gicon Gio.Icon the notification icon.
Returns:
Type
void

destroy() → {void}

Description:
  • Destroys the object.
Source:
Returns:
Type
void

notifyException(title, message) → {void}

Description:
  • Sends a notification that informs an exception.
Source:
Parameters:
Name Type Description
title string the notification title.
message string the notification message.
Returns:
Type
void

notifyStatus(status)

Description:
  • Sends a notification that informs Blocker's status.
Source:
Parameters:
Name Type Description
status boolean whether Blocker is enabled or not.