Share via


LoaderManager.RestartLoader Method

Definition

Starts a new or restarts an existing android.content.Loader in this manager, registers the callbacks to it, and (if the activity/fragment is currently started) starts loading it.

[Android.Runtime.Register("restartLoader", "(ILandroid/os/Bundle;Landroid/app/LoaderManager$LoaderCallbacks;)Landroid/content/Loader;", "GetRestartLoader_ILandroid_os_Bundle_Landroid_app_LoaderManager_LoaderCallbacks_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "D" })]
public abstract Android.Content.Loader? RestartLoader (int id, Android.OS.Bundle? args, Android.App.LoaderManager.ILoaderCallbacks? callback);
[<Android.Runtime.Register("restartLoader", "(ILandroid/os/Bundle;Landroid/app/LoaderManager$LoaderCallbacks;)Landroid/content/Loader;", "GetRestartLoader_ILandroid_os_Bundle_Landroid_app_LoaderManager_LoaderCallbacks_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "D" })>]
abstract member RestartLoader : int * Android.OS.Bundle * Android.App.LoaderManager.ILoaderCallbacks -> Android.Content.Loader

Parameters

id
Int32

A unique identifier for this loader. Can be whatever you want. Identifiers are scoped to a particular LoaderManager instance.

args
Bundle

Optional arguments to supply to the loader at construction.

callback
LoaderManager.ILoaderCallbacks

Interface the LoaderManager will call to report about changes in the state of the loader. Required.

Returns

Attributes

Remarks

Java documentation for android.app.LoaderManager.restartLoader(int, android.os.Bundle, android.app.LoaderCallbacks).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to