com.google.gwt.gadgets.client.rpc
Interface RpcFeature
- All Known Implementing Classes:
- RpcFeatureImpl
public interface RpcFeature
Provides access to the gadgets.rpc feature.
This is just a skeleton implementation that will add the RPC feature to the
gadget spec and allow a developer to write JSNI methods to access RPC from
JavaScript. For example:
public static native void callMyRpc(String arg1, int arg2, JavaScriptObject arg3)
...
$wnd.gadgets.rpc.call("targetId", "serviceName", arg1, arg2, arg3, function(callbackArg) {
...
});
- See Also:
- "http://code.google.com/p/gwt-google-apis/issues/detail?id=390"
unregisterDefault
void unregisterDefault()
- Unregisters the default service handler.