Stay organized with collections
Save and categorize content based on your preferences.
public interface CancellationSignal.OnCancelListener
Listens for cancellation.
Summary
Public methods |
abstract void |
Called when cancel is invoked.
|
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-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# CancellationSignal.OnCancelListener\n===================================\n\nArtifact: [androidx.core:core](/jetpack/androidx/releases/core) \n[View Source](https://cs.android.com/search?q=file:androidx/core/os/CancellationSignal.java+class:androidx.core.os.CancellationSignal.OnCancelListener) \nAdded in [1.1.0](/jetpack/androidx/releases/core#1.1.0) \nDeprecated in [1.13.0](/jetpack/androidx/releases/core#1.13.0)\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/core/os/CancellationSignal.OnCancelListener \"View this page in Kotlin\") \\|Java\n\n\n```\npublic interface CancellationSignal.OnCancelListener\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListens for cancellation.\n\nSummary\n-------\n\n| ### Public methods |\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `abstract void` | ~~[onCancel](/reference/androidx/core/os/CancellationSignal.OnCancelListener#onCancel())~~`()` Called when [cancel](/reference/androidx/core/os/CancellationSignal#cancel()) is invoked. |\n\nPublic methods\n--------------\n\n### onCancel\n\nAdded in [1.1.0](/jetpack/androidx/releases/core#1.1.0) \nDeprecated in [1.13.0](/jetpack/androidx/releases/core#1.13.0) \n\n```\nabstract void [onCancel](/reference/androidx/core/os/CancellationSignal.OnCancelListener#onCancel())()\n```\n\nCalled when [cancel](/reference/androidx/core/os/CancellationSignal#cancel()) is invoked."]]