Namespace: Plugins

WonderPushSDK. Plugins

Methods


get(pluginName)

Get a plugin object, to interact with its public interface.

Parameters:
Name Type Description
pluginName string

The name of the plugin instance to return

Returns:
  • The instanciated plugin, or undefined if there is no such plugin.
Type
Object

getVersion(pluginName)

Get a plugin's version, or URL if included that way.

For example, WonderPushSDK.Plugins.getVersion("some-plugin") can return 1.2.3 if you added the plugin using some-plugin:1.2.

Parameters:
Name Type Description
pluginName string

The name of the plugin whose version is to return

Returns:
  • The full 3-digit-groups version, or URL, or undefined if there is no such plugin.
Type
string | URL