Members
status
Methods
dismiss(notification, erroropt, successopt)
A request to dismiss the given notification, removing it from the user's list of notifications.
If the request is successful, a REMOVED event will be
raised (see module:ct-alerts/NotificationServiceEvents
).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
notification |
module:ct-alerts |
The notification to dismiss. |
|
error |
function |
<optional> |
A callback that will be invoked if the request fails. |
success |
function |
<optional> |
A callback that will be invoked when the request succeeds. |
dispose()
Disposes of any listeners and resources that were used by the service.
get Notifications Count() → {Number}
Returns a count of the currently active notifications.
Returns:
number of currently active notifications.
- Type
- Number