com.google.gwt.gadgets.client.osapi
Interface Callback<T extends com.google.gwt.core.client.JavaScriptObject>

Type Parameters:
T - Type of object returned by the request.

public interface Callback<T extends com.google.gwt.core.client.JavaScriptObject>

An interface for callbacks for OpenSocial requests.


Method Summary
 void onFail(OsapiError error)
          Called when request fails.
 void onSuccess(T object)
          Called when request succeeds.
 

Method Detail

onFail

void onFail(OsapiError error)
Called when request fails.

Parameters:
error - The object encapsulating information about the error.

onSuccess

void onSuccess(T object)
Called when request succeeds.

Parameters:
object - The object being the result of the request.