The Developer Preview for Android 11 is now available; test it out and share your feedback.

OnCancelListener

interface OnCancelListener
androidx.core.os.CancellationSignal.OnCancelListener

Listens for cancellation.

Summary

Public methods

abstract Unit

Called when CancellationSignal#cancel is invoked.

Public methods

onCancel

abstract fun onCancel(): Unit

Called when CancellationSignal#cancel is invoked.