- Source:
Methods
(static) removeToast(toastId)
Removes a toast notification
Parameters:
Name | Type | Description |
---|---|---|
toastId |
string | ID of the toast to remove |
- Source:
(static) showDashboard(urlopt, htmlopt) → {object}
Creates a dashboard window. (Only works on old webOS and Open webOS)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string |
<optional> |
URL for an HTML file to be loaded into the dashboard. |
html |
string |
<optional> |
HTML code to inject into the dashboard window. |
- Source:
Returns:
Window object of the child window for the dashboard
- Type
- object
(static) showToast(params, callbackopt)
Shows a temporary toast message via the system
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | Toast notification parameters, including:
Properties
|
|||||||||||||||||||||||||||||||||
callback |
webOS.notification~toastCallback |
<optional> |
The function to call once the toast notification is initialized. |
- Source:
(static) supportsDashboard() → {boolean}
Checks whether or not the current device supports creation of dashboard windows.
- Source:
Returns:
- Whether or not dashboard windows are supported.
- Type
- boolean
Type Definitions
toastCallback(toastId)
Parameters:
Name | Type | Description |
---|---|---|
toastId |
string | Unique ID of the toast being shown |
- Source: