IWindowInsetsController.ControlWindowInsetsAnimation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
讓應用程式透過修改視窗在系統中的位置,直接產生插入,逐幀控制內嵌動畫。
[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
參數
- types
- Int32
WindowInsets.Type該應用程式已向控制機構申請。
- durationMillis
- Int64
動畫長度為 java.util.concurrent.TimeUnit#MILLISECONDS,若動畫沒有預設長度,則為 -1。 這個值會傳遞給 WindowInsetsAnimation#getDurationMillis()
- interpolator
- IInterpolator
這動畫使用的插值器,或者 null 如果這個動畫沒有跟著插值曲線走。 此值會傳遞給 WindowInsetsAnimation#getInterpolator() 並用於計算 WindowInsetsAnimation#getInterpolatedFraction()。
- cancellationSignal
- CancellationSignal
取消訊號,呼叫者可用來取消請求以取得控制權,或在取得控制權後再取消控制權。
WindowInsetsAnimationControlListener當視窗準備好被控制時,就會呼叫這個,還有其他呼喚。
- 屬性
備註
讓應用程式透過修改視窗在系統中的位置,直接產生插入,逐幀控制內嵌動畫。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。