Google is committed to advancing racial equity for Black communities. See how.

AsyncTaskLoader

abstract class AsyncTaskLoader<D : Any!> : Loader<D>
kotlin.Any
   ↳ androidx.loader.content.Loader<D>
   ↳ androidx.loader.content.AsyncTaskLoader

Static library support version of the framework's android.content.AsyncTaskLoader. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.

Summary

Public constructors
<init>(@NonNull context: Context)

Public methods
open Unit

Called on the main thread to abort a load in progress.

open Unit
dump(prefix: String!, fd: FileDescriptor!, writer: PrintWriter!, args: Array<String!>!)

open Boolean

Returns true if the current invocation of loadInBackground is being canceled.

abstract D?

Called on a worker thread to perform the actual load and to return the result of the load operation.

open Unit
onCanceled(@Nullable data: D?)

Called if the task was canceled before it was completed.

open Unit

Set amount to throttle updates by.

Protected methods
open Executor

Returns the Executor to use for this Loader's AsyncTasks.

open Boolean

open Unit

open D?

Calls loadInBackground().

Inherited functions