Stay organized with collections
Save and categorize content based on your preferences.
CancellationSignal.OnCancelListener
public
static
interface
CancellationSignal.OnCancelListener
android.os.CancellationSignal.OnCancelListener
|
Listens for cancellation.
Summary
Public methods
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.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# CancellationSignal.OnCancelListener\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nCancellationSignal.OnCancelListener\n===================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/os/CancellationSignal.OnCancelListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nCancellationSignal.OnCancelListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------|\n| android.os.CancellationSignal.OnCancelListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListens for cancellation.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onCancel](/reference/android/os/CancellationSignal.OnCancelListener#onCancel())`() ` Called when [CancellationSignal.cancel](/reference/android/os/CancellationSignal#cancel()) is invoked. |\n\nPublic methods\n--------------\n\n### onCancel\n\nAdded in [API level 16](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onCancel ()\n```\n\nCalled when [CancellationSignal.cancel](/reference/android/os/CancellationSignal#cancel()) is invoked.\n\n\u003cbr /\u003e"]]