Package org.robolectric.shadows
Class ShadowLegacyAsyncTask<Params,Progress,Result>
java.lang.Object
org.robolectric.shadows.ShadowAsyncTask<Params,Progress,Result>
org.robolectric.shadows.ShadowLegacyAsyncTask<Params,Progress,Result>
@Deprecated
@Implements(value=android.os.AsyncTask.class,
shadowPicker=Picker.class,
isInAndroidSdk=false)
public class ShadowLegacyAsyncTask<Params,Progress,Result>
extends ShadowAsyncTask<Params,Progress,Result>
Deprecated.
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) Deprecated.protected FutureTask<Result>createFuture(Callable<Result> callable) Deprecated.Deprecated.executeOnExecutor(Executor executor, Params... params) Deprecated.protected Resultget()Deprecated.protected ResultDeprecated.protected AsyncTask.StatusDeprecated.protected booleanDeprecated.protected voidpublishProgress(Progress... values) Deprecated.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()Deprecated.
-
-
Method Details
-
createFuture
Deprecated. -
isCancelled
Deprecated. -
cancel
Deprecated. -
get
Deprecated. -
get
@Implementation protected Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Deprecated. -
execute
Deprecated. -
executeOnExecutor
@Implementation protected AsyncTask<Params,Progress, executeOnExecutorResult> (Executor executor, Params... params) Deprecated. -
getStatus
Deprecated. -
publishProgress
Deprecated.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:
-
AsyncTaskis deprecated in the Android SDK.