Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

Loader

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

Static library support version of the framework's android.content.Loader. 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

Nested classes

An implementation of a ContentObserver that takes care of connecting it to the Loader to have the loader re-load its data when the observer is told it has changed.

abstract

Interface that is implemented to discover when a Loader has been canceled before it finished loading its data.

abstract

Interface that is implemented to discover when a Loader has finished loading its data.

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

Stores away the application context associated with context.

Public methods
open Unit

This function will normally be called for you automatically by LoaderManager when restarting a Loader.

open Boolean

Attempt to cancel the current load task.

open Unit

Commit that you have actually fully processed a content change that was returned by takeContentChanged.

open String
dataToString(@Nullable data: D?)

For debugging, converts an instance of the Loader's data class to a string that can be printed.

open Unit

Informs the registered OnLoadCanceledListener that the load has been canceled.

open Unit
deliverResult(@Nullable data: D?)

Sends the result of the load to the registered listener.

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

Print the Loader's state into the given stream.

open Unit

Force an asynchronous load.

open Context

open Int

open Boolean

Return whether this loader has been abandoned.

open Boolean

Return whether this load has been reset.

open Boolean

Return whether this load has been started.

open Unit

Called when ForceLoadContentObserver detects a change.

open Unit
registerListener(id: Int, @NonNull listener: Loader.OnLoadCompleteListener<D>)

Registers a class that will receive callbacks when a load is complete.

open Unit

Registers a listener that will receive callbacks when a load is canceled.

open Unit

This function will normally be called for you automatically by LoaderManager when destroying a Loader.

open Unit

Report that you have abandoned the processing of a content change that was returned by takeContentChanged() and would like to rollback to the state where there is again a pending content change.

Unit

This function will normally be called for you automatically by LoaderManager when the associated fragment/activity is being started.

open Unit

This function will normally be called for you automatically by LoaderManager when the associated fragment/activity is being stopped.

open Boolean

Take the current flag indicating whether the loader's content had changed while it was stopped.

open String

open Unit

Remove a listener that was previously added with registerListener.

open Unit

Unregisters a listener that was previously added with registerO