Android.Content.Loader Class
A class that performs asynchronous loading of data.

See Also: Loader Members

Syntax

[Android.Runtime.Register("android/content/Loader", DoNotGenerateAcw=true)]
public class Loader : Java.Lang.Object

Remarks

A class that performs asynchronous loading of data. While Loaders are active they should monitor the source of their data and deliver new results when the contents change. See Android.App.LoaderManager for more detail.

Developer Guides

Note on threading: Clients of loaders should as a rule perform any calls on to a Loader from the main thread of their process (that is, the thread the Activity callbacks and other things occur on). Subclasses of Loader (such as Android.Content.AsyncTaskLoader) will often perform their work in a separate thread, but when delivering their results this too should be done on the main thread.

Subclasses generally must implement at least Loader.OnStartLoading, Loader.OnStopLoading, Loader.OnForceLoad, and Loader.OnReset.

Most implementations should not derive directly from this class, but instead inherit from Android.Content.AsyncTaskLoader.

For more information about using loaders, read the Loaders developer guide.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11