Langue

IWindowInsetsController.ControlWindowInsetsAnimation Méthode

Définition

Permet à la fenêtre de contrôle d’application d’animations d’ensemble de manière frame par image en modifiant directement la position des fenêtres dans le système à l’origine d’ensembles.

[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

Paramètres

types
Int32

S WindowInsets.Typel’application a demandé de contrôler.

durationMillis
Int64

Durée de l’animation dans java.util.concurrent.TimeUnit#MILLISECONDS, ou -1 si l’animation n’a pas de durée prédéterminée. Cette valeur sera passée à WindowInsetsAnimation#getDurationMillis()

interpolator
IInterpolator

Interpolateur utilisé pour cette animation ou null si cette animation ne suit pas une courbe d’interpolation. Cette valeur est passée à WindowInsetsAnimation#getInterpolator() et utilisée pour calculer WindowInsetsAnimation#getInterpolatedFraction().

cancellationSignal
CancellationSignal

Signal d’annulation que l’appelant peut utiliser pour annuler la demande d’obtention du contrôle, ou une fois qu’il a le contrôle, pour annuler le contrôle.

listener
IWindowInsetsAnimationControlListener

Appelé WindowInsetsAnimationControlListener lorsque les fenêtres sont prêtes à être contrôlées, entre autres rappels.

Attributs

Remarques

Permet à la fenêtre de contrôle d’application d’animations d’ensemble de manière frame par image en modifiant directement la position des fenêtres dans le système à l’origine d’ensembles.

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à