Stay organized with collections
Save and categorize content based on your preferences.
OnLoadCompleteListener
interface OnLoadCompleteListener<D : Any!>
Interface that is implemented to discover when a Loader has finished loading its data. You do not normally need to implement this yourself; it is used in the implementation of android.app.LoaderManager
to find out when a Loader it is managing has completed so that this can be reported to its client. This interface should only be used if a Loader is not being used in conjunction with LoaderManager.
Summary
Public methods |
abstract Unit |
Called on the thread that created the Loader when the load is complete.
|
Public methods
onLoadComplete
abstract fun onLoadComplete(
loader: Loader<D>!,
data: D
): Unit
Deprecated: Deprecated in Java.
Called on the thread that created the Loader when the load is complete.
Parameters |
loader |
Loader<D>!: the loader that completed the load |
data |
D: the result of the load |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Loader.OnLoadCompleteListener\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnLoadCompleteListener\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/Loader.OnLoadCompleteListener \"View this page in Java\") \n\n```\ninterface OnLoadCompleteListener\u003cD : Any!\u003e\n```\n\n|----------------------------------------------------|\n| [android.content.Loader.OnLoadCompleteListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 28.**\n|\n| Use androidx.loader.content.Loader.OnLoadCompleteListener\n\nInterface that is implemented to discover when a Loader has finished loading its data. You do not normally need to implement this yourself; it is used in the implementation of [android.app.LoaderManager](../app/LoaderManager.html#) to find out when a Loader it is managing has completed so that this can be reported to its client. This interface should only be used if a Loader is not being used in conjunction with LoaderManager.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onLoadComplete](#onLoadComplete(android.content.Loader,%20android.content.Loader.OnLoadCompleteListener.D))`(`loader:` `[Loader](/reference/kotlin/android/content/Loader)\u003cD\u003e!`, `data:` `D`)` Called on the thread that created the Loader when the load is complete. |\n\nPublic methods\n--------------\n\n### onLoadComplete\n\nAdded in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onLoadComplete(\n loader: Loader\u003cD\u003e!, \n data: D\n): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled on the thread that created the Loader when the load is complete.\n\n| Parameters ||\n|----------|----------------------------------------------------------------------------------------------|\n| `loader` | [Loader](/reference/kotlin/android/content/Loader)\\\u003cD\\\u003e!: the loader that completed the load |\n| `data` | D: the result of the load |"]]