Android SDK Version


public class GraphRequestAsyncTask
extends AsyncTask<Void, Void, List<GraphResponse>>
                    
Defines an AsyncTask suitable for executing a Request in the background. May be subclassed by applications having unique threading model needs.
Nested Class Summary
Modifier and TypeClassDescription
public classGraphRequestAsyncTask.Companion
Field Summary
Modifier and TypeFieldDescription
private final GraphRequestBatchrequests
Constructor Summary
ConstructorDescription
GraphRequestAsyncTask(GraphRequest requests)Constructor.
GraphRequestAsyncTask(Collection<GraphRequest> requests)Constructor.
GraphRequestAsyncTask(GraphRequestBatch requests)Constructor.
GraphRequestAsyncTask(HttpURLConnection connection, GraphRequest requests)Constructor that allows specification of an HTTP connection to use for executing the requests.
GraphRequestAsyncTask(HttpURLConnection connection, Collection<GraphRequest> requests)Constructor that allows specification of an HTTP connection to use for executing the requests.
GraphRequestAsyncTask(HttpURLConnection connection, GraphRequestBatch requests)
Method Summary
Modifier and TypeMethodDescription
final GraphRequestBatchgetRequests()
StringtoString()
UnitonPreExecute()
List<GraphResponse>doInBackground(Void params)
Methods inherited from class com.facebook.GraphRequestAsyncTask
cancel, execute, executeOnExecutor, get, get, getStatus, isCancelled, onCancelled, onCancelled, onProgressUpdate, publishProgress
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

GraphRequestAsyncTask

GraphRequestAsyncTask(GraphRequest requests)
Constructor.
Parameters:
requests - the requests to execute

GraphRequestAsyncTask

GraphRequestAsyncTask(Collection<GraphRequest> requests)
Constructor.
Parameters:
requests - the requests to execute

GraphRequestAsyncTask

GraphRequestAsyncTask(GraphRequestBatch requests)
Constructor.
Parameters:
requests - the requests to execute

GraphRequestAsyncTask

GraphRequestAsyncTask(HttpURLConnection connection, GraphRequest requests)
Constructor that allows specification of an HTTP connection to use for executing the requests.
Parameters:
connection - the HTTP connection to use to execute the requests
requests - the requests to execute

GraphRequestAsyncTask

GraphRequestAsyncTask(HttpURLConnection connection, Collection<GraphRequest> requests)
Constructor that allows specification of an HTTP connection to use for executing the requests.
Parameters:
connection - the HTTP connection to use to execute the requests
requests - the requests to execute

GraphRequestAsyncTask

GraphRequestAsyncTask(HttpURLConnection connection, GraphRequestBatch requests)
Method Detail

getRequests

 final GraphRequestBatchgetRequests()

toString

StringtoString()

onPreExecute

UnitonPreExecute()

doInBackground

List<GraphResponse> doInBackground(Void params)