Constructor
new (require("MNotificationManager"))()
- Description:
Constructor.
Methods
getNotificationWidgetCount() → {number}
- Description:
Get notification widget count.
Returns:
Count.
- Type
- number
createInfoNotification(text)
- Description:
Create info notification.
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | Text. |
createSuccessNotification(text)
- Description:
Create success notification.
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | Text. |
createWarningNotification(text)
- Description:
Create warning notification.
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | Text. |
createCriticalNotification(text)
- Description:
Create critical notification.
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | Text. |
createNotificationFromHTTPResponse(data)
- Description:
Create notification from HTTP response.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
JSON | Data. |
createCriticalNotificationFromHTTPResponse(status, statusText, response)
- Description:
Create critical notification from HTTP response.
Parameters:
| Name | Type | Description |
|---|---|---|
status |
Number | Status. |
statusText |
string | Status text. |
response |
* | Response. |
removeNotificationWidget(notificationWidget)
- Description:
Remove given
notificationWidgetwidget.
Parameters:
| Name | Type | Description |
|---|---|---|
notificationWidget |
MNotificationWidget | Notification widget to be removed. |
(static) getInstance() → {MNotificationManager}
- Description:
Get instance of this class.
Returns:
Instance of MNotificationManager class.
- Type
- MNotificationManager