public final class ExternalInterface extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addCallback(String methodName,
CallbackListener listener)
Register callback for invocations from the container.
|
static com.google.gwt.core.client.JavaScriptObject |
call(String methodName,
com.google.gwt.core.client.JavaScriptObject... params)
Invoke a function in the container.
|
static boolean |
isAvailable()
Determine if the external interface is available.
|
public static boolean isAvailable()
public static boolean addCallback(String methodName, CallbackListener listener)
methodName - name of the method that will be called
by the containerlistener - instance that will receive container invocationspublic static com.google.gwt.core.client.JavaScriptObject call(String methodName, com.google.gwt.core.client.JavaScriptObject... params)
methodName - name of the method to invokeparams - zero or more arrays each containing a method parameter
as the first element in the arrayCopyright © 2013. All Rights Reserved.