WindowInsetsAnimationControlListenerCompat

interface WindowInsetsAnimationControlListenerCompat


Listener that encapsulates a request to controlWindowInsetsAnimation.

Insets can be controlled with the supplied WindowInsetsAnimationControllerCompat from onReady until either onFinished or onCancelled.

Once the control over insets is finished or cancelled, it will not be regained until a new request to controlWindowInsetsAnimation is made.

The request to control insets can fail immediately. In that case onCancelled will be invoked without a preceding onReady.

Summary

Public methods

abstract void

Called when the request for control over the insets has been cancelled, either because the android.os.CancellationSignal associated with the request has been invoked, or the window has lost control over the insets (e.g.

abstract void

Called when the request for control over the insets has finished.

abstract void

Called when the animation is ready to be controlled.

Public methods

onCancelled

abstract void onCancelled(@Nullable WindowInsetsAnimationControllerCompat controller)

Called when the request for control over the insets has been cancelled, either because the android.os.CancellationSignal associated with the request has been invoked, or the window has lost control over the insets (e.g. because it lost focus).

Once this callback is invoked, the supplied WindowInsetsAnimationControllerCompat is no longer ready.

Control will not be regained until a new request to controlWindowInsetsAnimation is made.

Parameters
@Nullable WindowInsetsAnimationControllerCompat controller

the controller which has been cancelled, or null if the request was cancelled before onReady was invoked.

See also
isCancelled

onFinished

abstract void