Class Ozone.launcher.WidgetLauncherUtils
Defined in: WidgetLauncher.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Utility functions for a widget that has been launched
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData()
gets initial launch config data for this widget if it was just launched
|
Class Detail
Ozone.launcher.WidgetLauncherUtils()
Utility functions for a widget that has been launched
Method Detail
<static>
{Object}
Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData()
gets initial launch config data for this widget if it was just launched
var launchConfig = Ozone.launcher.WidgetLauncherUtils.getLaunchConfigData();
if (launchConfig != null) {
var data = Ozone.util.parseJson(launchConfig); //in this example the data object has two fields: channel and message
if (data != null) {
//do something with the data
scope.subscribeToChannel(data.channel);
scope.addToGrid(null,data.message,data.channel);
}
}
- Returns:
- {Object} data object which contains initial information for the widget