LoaderManager.ILoaderCallbacks.OnCreateLoader(Int32, Bundle) Method

Definition

Instantiate and return a new Loader for the given ID.

[Android.Runtime.Register("onCreateLoader", "(ILandroid/os/Bundle;)Landroid/content/Loader;", "GetOnCreateLoader_ILandroid_os_Bundle_Handler:Android.App.LoaderManager/ILoaderCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Content.Loader? OnCreateLoader (int id, Android.OS.Bundle? args);
[<Android.Runtime.Register("onCreateLoader", "(ILandroid/os/Bundle;)Landroid/content/Loader;", "GetOnCreateLoader_ILandroid_os_Bundle_Handler:Android.App.LoaderManager/ILoaderCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCreateLoader : int * Android.OS.Bundle -> Android.Content.Loader

Parameters

id
Int32

The ID whose loader is to be created.

args
Bundle

Any arguments supplied by the caller.

Returns

Return a new Loader instance that is ready to start loading.

Attributes

Remarks

Instantiate and return a new Loader for the given ID.

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

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