com.netmera.facebook
Interface AsyncFacebookRunner.RequestListener

Enclosing class:
AsyncFacebookRunner

public static interface AsyncFacebookRunner.RequestListener

Callback interface for API requests. Each method includes a 'state' parameter that identifies the calling request. It will be set to the value passed when originally calling the request method, or null if none was passed.


Method Summary
 void onComplete(java.lang.String response, java.lang.Object state)
          Called when a request completes with the given response.
 void onFacebookError(FacebookError e, java.lang.Object state)
          Called when the server-side Facebook method fails.
 void onFileNotFoundException(java.io.FileNotFoundException e, java.lang.Object state)
          Called when a request fails because the requested resource is invalid or does not exist.
 void onIOException(java.io.IOException e, java.lang.Object state)
          Called when a request has a network or request error.
 void onMalformedURLException(java.net.MalformedURLException e, java.lang.Object state)
          Called if an invalid graph path is provided (which may result in a malformed URL).
 

Method Detail

onComplete

void onComplete(java.lang.String response,
                java.lang.Object state)
Called when a request completes with the given response. Executed by a background thread: do not update the UI in this method.


onIOException

void onIOException(java.io.IOException e,
                   java.lang.Object state)
Called when a request has a network or request error. Executed by a background thread: do not update the UI in this method.


onFileNotFoundException

void onFileNotFoundException(java.io.FileNotFoundException e,
                             java.lang.Object state)
Called when a request fails because the requested resource is invalid or does not exist. Executed by a background thread: do not update the UI in this method.


onMalformedURLException

void onMalformedURLException(java.net.MalformedURLException e,
                             java.lang.Object state)
Called if an invalid graph path is provided (which may result in a malformed URL). Executed by a background thread: do not update the UI in this method.


onFacebookError

void onFacebookError(FacebookError e,
                     java.lang.Object state)
Called when the server-side Facebook method fails. Executed by a background thread: do not update the UI in this method.