Share via


WindowInsetsAnimation.InterpolatedFraction Property

Definition

Returns the interpolated fractional progress of this animation between start state of the animation and the end state of the animation.

public float InterpolatedFraction { [Android.Runtime.Register("getInterpolatedFraction", "()F", "", ApiSince=30)] get; }
[<get: Android.Runtime.Register("getInterpolatedFraction", "()F", "", ApiSince=30)>]
member this.InterpolatedFraction : single

Property Value

The current interpolated progress of this animation.

Attributes

Remarks

Returns the interpolated fractional progress of this animation between start state of the animation and the end state of the animation. Note that this progress is the global progress of the animation, whereas Callback#onProgress will only dispatch the insets that may be inset with WindowInsets#inset by parents of views in the hierarchy. Progress per insets animation is global for the entire animation. One animation animates all things together (in, out, ...). If they don't animate together, we'd have multiple animations.

Note: In case the application is controlling the animation, the valued returned here will be the same as the application passed into WindowInsetsAnimationController#setInsetsAndAlpha(Insets, float, float), interpolated with the interpolator passed into WindowInsetsController#controlWindowInsetsAnimation.

Note: For system-initiated animations, this will always return a valid value between 0 and 1.

Java documentation for android.view.WindowInsetsAnimation.getInterpolatedFraction().

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