-
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
Nested Classes Modifier and Type Class Description public class
GraphRequestAsyncTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private final GraphRequestBatch
requests
-
Constructor Summary
Constructors Constructor Description 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 Type Method Description final GraphRequestBatch
getRequests()
String
toString()
Unit
onPreExecute()
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 requestsrequests
- 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 requestsrequests
- the requests to execute
-
GraphRequestAsyncTask
GraphRequestAsyncTask(HttpURLConnection connection, GraphRequestBatch requests)
-
-
Method Detail
-
getRequests
final GraphRequestBatch getRequests()
-
onPreExecute
Unit onPreExecute()
-
doInBackground
List<GraphResponse> doInBackground(Void params)
-
-
-
-