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 Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowAsyncTask
ShadowAsyncTask.Picker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancancel(boolean mayInterruptIfRunning) protected FutureTask<Result>createFuture(Callable<Result> callable) executeOnExecutor(Executor executor, Params... params) protected Resultget()protected Resultprotected AsyncTask.Statusprotected booleanprotected 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
-
ShadowLegacyAsyncTask
public ShadowLegacyAsyncTask()
-
-
Method Details
-
createFuture
-
isCancelled
-
cancel
-
get
-
get
@Implementation protected Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException -
execute
-
executeOnExecutor
-
getStatus
-
publishProgress
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:
-