Package org.robolectric.shadows
Class ShadowLegacyAsyncTask<Params,Progress,Result>
java.lang.Object
org.robolectric.shadows.ShadowAsyncTask
org.robolectric.shadows.ShadowLegacyAsyncTask<Params,Progress,Result>
@Implements(value=android.os.AsyncTask.class, shadowPicker=Picker.class, isInAndroidSdk=false) public class ShadowLegacyAsyncTask<Params,Progress,Result> extends ShadowAsyncTask
A 
AsyncTask shadow for LooperMode.Mode.LEGACY.- 
Nested Class SummaryNested classes/interfaces inherited from class org.robolectric.shadows.ShadowAsyncTaskShadowAsyncTask.Picker
- 
Constructor SummaryConstructors Constructor Description ShadowLegacyAsyncTask()
- 
Method SummaryModifier and Type Method Description protected booleancancel(boolean mayInterruptIfRunning)protected FutureTask<Result>createFuture(Callable<Result> callable)protected AsyncTask<Params,Progress,Result>execute(Params... params)protected AsyncTask<Params,Progress,Result>executeOnExecutor(Executor executor, Params... params)protected Resultget()protected Resultget(long timeout, TimeUnit unit)protected AsyncTask.StatusgetStatus()protected booleanisCancelled()protected voidpublishProgress(Progress... values)Enqueue a call toAsyncTask.onProgressUpdate(Object[])on UI looper (or run it immediately if the looper it is not paused).
- 
Constructor Details- 
ShadowLegacyAsyncTaskpublic ShadowLegacyAsyncTask()
 
- 
- 
Method Details- 
createFuture
- 
isCancelled
- 
cancel
- 
get
- 
get@Implementation protected Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- 
execute
- 
executeOnExecutor
- 
getStatus
- 
publishProgressEnqueue a call toAsyncTask.onProgressUpdate(Object[])on UI looper (or run it immediately if the looper it is not paused).- Parameters:
- values- The progress values to update the UI with.
- See Also:
- AsyncTask.publishProgress(Object[])
 
 
-