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 AAsyncTaskshadow forLooperMode.Mode.LEGACY.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowAsyncTaskShadowAsyncTask.Picker
 
- 
 - 
Constructor SummaryConstructors Constructor Description ShadowLegacyAsyncTask()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier 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).
 
- 
- 
- 
Method Detail- 
createFutureprotected FutureTask<Result> createFuture(Callable<Result> callable) 
 - 
isCancelled@Implementation protected boolean isCancelled() 
 - 
cancel@Implementation protected boolean cancel(boolean mayInterruptIfRunning) 
 - 
get@Implementation protected Result get() throws InterruptedException, ExecutionException 
 - 
get@Implementation protected Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException 
 - 
executeOnExecutor@Implementation protected AsyncTask<Params,Progress,Result> executeOnExecutor(Executor executor, Params... params) 
 - 
getStatus@Implementation protected AsyncTask.Status getStatus() 
 - 
publishProgress@Implementation protected void publishProgress(Progress... values) Enqueue 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[])
 
 
- 
 
-