public class Plugin
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAdServerUrl() |
PluginJSBridge |
getJSBridge() |
java.lang.String |
getJsiName() |
PluginFunctions |
getPluginFunctions() |
java.lang.String |
getProtocolName() |
SharedFunctionality |
getToolBox()
Returns a toolbox which provides generic functionality can be selectively used by plugin developers.
|
java.lang.String |
getUniqueId() |
boolean |
handleCommand(java.lang.String command,
java.util.HashMap<java.lang.String,java.lang.String> params)
Fires the handleCommand() event of
PluginFunctions to handle the incoming command. |
void |
init()
Fires the init() event of
PluginFunctions to initialize the active plugin. |
void |
injectLoaderScript(HtmlObject htmlObject) |
void |
onActivityStateChanged(Advantage.ActivityState state)
Fires the onActivityStateChanged() event of
PluginFunctions to manage the banner's life-cycle. |
void |
onOrientationChanged(android.content.res.Configuration newConfig)
Fires the onOrientationChanged() event of
PluginFunctions. |
void |
onSizeChanged(Size size)
Fires the onSizeChanged() event of
PluginFunctions. |
void |
onStateChanged(Enum.States state)
Fires the onStateChanged() event of
PluginFunctions. |
void |
onVisibilityChanged(boolean visibility)
Fires the onVisibilityChanged() event of
PluginFunctions to handle the new state. |
void |
onVisibilityPercentageChanged(VisibilityResult result)
Fires the onVisibilityPercentageChanged() event of
PluginFunctions. |
void |
onVolumeChanged(AudioInfo result)
Fires the onVolumeChanged() event of
PluginFunctions. |
void |
setAdServerUrl(java.lang.String adServerUrl)
Sets the external plugin's Ad-server URL.
|
void |
setToolBox(SharedFunctionality toolBox)
Sets an instance of toolbox which allows plugin developers to implement new functionalities.
|
public void setToolBox(SharedFunctionality toolBox)
toolBox - An instance of SharedFunctionality.public SharedFunctionality getToolBox()
SharedFunctionalitypublic java.lang.String getUniqueId()
public java.lang.String getJsiName()
public java.lang.String getProtocolName()
public void setAdServerUrl(java.lang.String adServerUrl)
adServerUrl - The resource URL to load.public java.lang.String getAdServerUrl()
public PluginJSBridge getJSBridge()
public PluginFunctions getPluginFunctions()
public void init()
PluginFunctions to initialize the active plugin.public boolean handleCommand(java.lang.String command,
java.util.HashMap<java.lang.String,java.lang.String> params)
PluginFunctions to handle the incoming command.command - The name of command.params - List of parameters.true If this command handled successfully.
false Otherwise.public void onStateChanged(Enum.States state)
PluginFunctions.state - Current state.public void onSizeChanged(Size size)
PluginFunctions.size - new size of the ad.public void onOrientationChanged(android.content.res.Configuration newConfig)
PluginFunctions.newConfig - An instance of all device configuration information.public void onActivityStateChanged(Advantage.ActivityState state)
PluginFunctions to manage the banner's life-cycle.state - new activity statepublic void onVisibilityChanged(boolean visibility)
PluginFunctions to handle the new state.visibility - true If banner is viewable on the screen.
false Otherwise.public void onVisibilityPercentageChanged(VisibilityResult result)
PluginFunctions.result - An instance of VisibilityResult.public void onVolumeChanged(AudioInfo result)
PluginFunctions.result - An instance of AudioInfo.public void injectLoaderScript(HtmlObject htmlObject)