public abstract class PluginFunctions
extends java.lang.Object
Plugin uses this class to handle the commands and routed events. For this purpose,
This class needs to be subclassed.| Constructor and Description |
|---|
PluginFunctions() |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.String |
getLastKnownLocation()
Knowing the location of the device when an ad is active can enhance the creative
possibilities for an ad, but not all apps support access to location details.
|
abstract boolean |
handleCommand(java.lang.String command,
java.util.HashMap<java.lang.String,java.lang.String> params)
Calls when a new command with plugin's protocol is detected.
|
public abstract boolean handleCommand(java.lang.String command,
java.util.HashMap<java.lang.String,java.lang.String> params)
command - The name of command.params - List of parameters.true If this command handled successfully.
false Otherwise.public abstract java.lang.String getLastKnownLocation()