Share via


IWindowInsetsController.ControlWindowInsetsAnimation Method

Definition

Lets the application control window inset animations in a frame-by-frame manner by modifying the position of the windows in the system causing insets directly.

[Android.Runtime.Register("controlWindowInsetsAnimation", "(IJLandroid/view/animation/Interpolator;Landroid/os/CancellationSignal;Landroid/view/WindowInsetsAnimationControlListener;)V", "GetControlWindowInsetsAnimation_IJLandroid_view_animation_Interpolator_Landroid_os_CancellationSignal_Landroid_view_WindowInsetsAnimationControlListener_Handler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void ControlWindowInsetsAnimation (int types, long durationMillis, Android.Views.Animations.IInterpolator? interpolator, Android.OS.CancellationSignal? cancellationSignal, Android.Views.IWindowInsetsAnimationControlListener listener);
[<Android.Runtime.Register("controlWindowInsetsAnimation", "(IJLandroid/view/animation/Interpolator;Landroid/os/CancellationSignal;Landroid/view/WindowInsetsAnimationControlListener;)V", "GetControlWindowInsetsAnimation_IJLandroid_view_animation_Interpolator_Landroid_os_CancellationSignal_Landroid_view_WindowInsetsAnimationControlListener_Handler:Android.Views.IWindowInsetsControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member ControlWindowInsetsAnimation : int * int64 * Android.Views.Animations.IInterpolator * Android.OS.CancellationSignal * Android.Views.IWindowInsetsAnimationControlListener -> unit

Parameters

types
Int32

The WindowInsets.Types the application has requested to control.

durationMillis
Int64

Duration of animation in java.util.concurrent.TimeUnit#MILLISECONDS, or -1 if the animation doesn't have a predetermined duration. This value will be passed to WindowInsetsAnimation#getDurationMillis()

interpolator
IInterpolator

The interpolator used for this animation, or null if this animation doesn't follow an interpolation curve. This value will be passed to WindowInsetsAnimation#getInterpolator() and used to calculate WindowInsetsAnimation#getInterpolatedFraction().

cancellationSignal
CancellationSignal

A cancellation signal that the caller can use to cancel the request to obtain control, or once they have control, to cancel the control.

listener
IWindowInsetsAnimationControlListener

The WindowInsetsAnimationControlListener that gets called when the windows are ready to be controlled, among other callbacks.

Attributes

Remarks

Lets the application control window inset animations in a frame-by-frame manner by modifying the position of the windows in the system causing insets directly.

Java documentation for android.view.WindowInsetsController.controlWindowInsetsAnimation(int, long, android.view.animation.Interpolator, android.os.CancellationSignal, android.view.WindowInsetsAnimationControlListener).

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