IWindowInsetsAnimationControlListener.OnCancelled Method

Definition

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

[Android.Runtime.Register("onCancelled", "(Landroid/view/WindowInsetsAnimationController;)V", "GetOnCancelled_Landroid_view_WindowInsetsAnimationController_Handler:Android.Views.IWindowInsetsAnimationControlListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void OnCancelled (Android.Views.IWindowInsetsAnimationController? controller);
[<Android.Runtime.Register("onCancelled", "(Landroid/view/WindowInsetsAnimationController;)V", "GetOnCancelled_Landroid_view_WindowInsetsAnimationController_Handler:Android.Views.IWindowInsetsAnimationControlListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member OnCancelled : Android.Views.IWindowInsetsAnimationController -> unit

Parameters

controller
IWindowInsetsAnimationController

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

Attributes

Remarks

Called when the request for control over the insets has been cancelled, either because the android.os.CancellationSignal associated with the WindowInsetsController#controlWindowInsetsAnimation 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 WindowInsetsAnimationController is no longer WindowInsetsAnimationController#isReady() ready.

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

Java documentation for android.view.WindowInsetsAnimationControlListener.onCancelled(android.view.WindowInsetsAnimationController).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to