Notification Handler interface
Members
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
# 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