Constructor
new module:ct-sljsadapter /providers /Stream Link Notification Service(provided Streamlink Notification API)
Parameters:
Name | Type | Description |
---|---|---|
providedStreamlinkNotificationAPI |
caplin |
provide a fake streamlink API for testing |
Methods
dismiss(dismissed Notification, erroropt, successopt)
This method is meant to be invoked by UI components wishing to dismiss a notification. It uses the streamlink API to dismiss the given notification.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dismissedNotification |
ct-alerts |
The notification to be dismissed. |
|
error |
function |
<optional> |
Callback to be invoked on streamlink contrib error. |
success |
function |
<optional> |
Callback to be invoked on successful request. |
Throws:
-
If dismissedNotification is not a Notification or if error and success are not functions.
- Type
-
br
/Errors .Invalid Parameters Error
dispose()
Disposes of any listeners and resources that were used by the service.