Class: Plugins

Plugins

Provides access to the metadata of the available plugins.


Each plugin that is available appears as a property of Plugins, named after the plugin. For example, the 'ui' plugin metadata can be accessed via $wat.plugins.ui.

See:

Methods


pluginList()

Returns a list of the available plugin names. The metadata for a plugin can be accessed as a property with the same name as the plugin. The plugin metadata is type wat.Plugin when access this way.

Since:
  • 1.0
Returns:
Type
Array.<string>
Examples
console.log('UI version is ' + $wat.plugins.ui.version.str);
for (plName in $wat.plugins.pluginList())
{
   console.log('Plugin ' + plName + ' version is ' + $wat.plugins[plName].version.str);
}

remove(pluginName)

Permanently remove a plugin from the device. This operation cannot be undone. To restore the plugin after removal, it would need to be re-loaded using the device web page or AxMC.

Parameters:
Name Type Description
pluginName string

The name of the plugin to remove

Since:
  • 1.0
Returns:

Indicates if the removal was successful

Type
bool