public class MraidPluginFunctions extends PluginFunctions
PluginFunctions to handle the MRAID V2.0's commands and
routed events.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLastKnownLocation()
If supported, the ad uses getLocation to query the host about the location of
the device.
|
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 boolean handleCommand(java.lang.String command,
java.util.HashMap<java.lang.String,java.lang.String> params)
PluginFunctionshandleCommand in class PluginFunctionscommand - The name of command.params - List of parameters.true If this command handled successfully.
false Otherwise.public java.lang.String getLastKnownLocation()
getLastKnownLocation in class PluginFunctions