IWindowInsetsAnimationController.SetInsetsAndAlpha(Insets, Single, Single) Method

Definition

Modifies the insets for the frame being drawn by indirectly moving the windows around in the system that are causing window insets.

[Android.Runtime.Register("setInsetsAndAlpha", "(Landroid/graphics/Insets;FF)V", "GetSetInsetsAndAlpha_Landroid_graphics_Insets_FFHandler:Android.Views.IWindowInsetsAnimationControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public void SetInsetsAndAlpha (Android.Graphics.Insets? insets, float alpha, float fraction);
[<Android.Runtime.Register("setInsetsAndAlpha", "(Landroid/graphics/Insets;FF)V", "GetSetInsetsAndAlpha_Landroid_graphics_Insets_FFHandler:Android.Views.IWindowInsetsAnimationControllerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member SetInsetsAndAlpha : Android.Graphics.Insets * single * single -> unit

Parameters

insets
Insets

The new insets to apply. Based on the requested insets, the system will calculate the positions of the windows in the system causing insets such that the resulting insets of that configuration will match the passed in parameter. Note that these insets are being clamped to the range from #getHiddenStateInsets to #getShownStateInsets. If you intend on changing alpha only, pass null or #getCurrentInsets().

alpha
Single

The new alpha to apply to the inset side.

fraction
Single

instantaneous animation progress. This value is dispatched to WindowInsetsAnimation.Callback.

Attributes

Remarks

Java documentation for android.view.WindowInsetsAnimationController.setInsetsAndAlpha(android.graphics.Insets, float, float).

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