Interface

NotificationHandler

NotificationHandler

Notification Handler interface

Members

boolean

# enabled

Whether the handler is enabled
NotificationManager.NotificationHandlerType

# readonly id

Id of the handler

Methods

# addFilter(filter) → {function|function}

Adds a new filter
Parameters:
Name Type Description
filter NotificationHandler.NotificationFilterFunction Filter function to be added
callback to remove the filter
function
function

# clearFilters() → {void}

Clear current filters
void

# getFilters() → {Array.<NotificationHandler.NotificationFilterFunction>|Array.<NotificationFilterFunction>}

Get all current filters
array of current filters
Array.<NotificationFilterFunction>

Type Definitions

# NotificationFilterFunction(notification) → {boolean}

Parameters:
Name Type Description
notification Notification Notification to filter
whether notification should be handled
boolean