Stay organized with collections
Save and categorize content based on your preferences.
OnLoadCanceledListener
interface OnLoadCanceledListener<D : Any!>
Interface that is implemented to discover when a Loader has been canceled before it 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 been canceled so that it can schedule the next Loader. 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 canceled.
|
Public methods
onLoadCanceled
abstract fun onLoadCanceled(loader: Loader<D>!): Unit
Deprecated: Deprecated in Java.
Called on the thread that created the Loader when the load is canceled.
Parameters |
loader |
Loader<D>!: the loader that canceled 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.OnLoadCanceledListener\n\nAdded in [API level 16](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\nOnLoadCanceledListener\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/content/Loader.OnLoadCanceledListener \"View this page in Java\") \n\n```\ninterface OnLoadCanceledListener\u003cD : Any!\u003e\n```\n\n|----------------------------------------------------|\n| [android.content.Loader.OnLoadCanceledListener](#) |\n\n*** ** * ** ***\n\n| **This interface was deprecated in API level 28.**\n|\n| Use androidx.loader.content.Loader.OnLoadCanceledListener\n\nInterface that is implemented to discover when a Loader has been canceled before it 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 been canceled so that it can schedule the next Loader. 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) | [onLoadCanceled](#onLoadCanceled(android.content.Loader))`(`loader:` `[Loader](/reference/kotlin/android/content/Loader)\u003cD\u003e!`)` Called on the thread that created the Loader when the load is canceled. |\n\nPublic methods\n--------------\n\n### onLoadCanceled\n\nAdded in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onLoadCanceled(loader: Loader\u003cD\u003e!): Unit\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nCalled on the thread that created the Loader when the load is canceled.\n\n| Parameters ||\n|----------|---------------------------------------------------------------------------------------------|\n| `loader` | [Loader](/reference/kotlin/android/content/Loader)\\\u003cD\\\u003e!: the loader that canceled the load |"]]