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
- The instanciated plugin, or
-
getVersion(pluginName)
-
Get a plugin's version, or URL if included that way.
For example,
WonderPushSDK.Plugins.getVersion("some-plugin")
can return1.2.3
if you added the plugin usingsome-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
- The full 3-digit-groups version, or URL, or