共用方式為


WindowInsets.ConsumeStableInsets Method

Definition

Returns a copy of this WindowInsets with the stable insets fully consumed.

[Android.Runtime.Register("consumeStableInsets", "()Landroid/view/WindowInsets;", "")]
public Android.Views.WindowInsets ConsumeStableInsets ();
[<Android.Runtime.Register("consumeStableInsets", "()Landroid/view/WindowInsets;", "")>]
member this.ConsumeStableInsets : unit -> Android.Views.WindowInsets

Returns

A modified copy of this WindowInsets

Attributes

Remarks

Returns a copy of this WindowInsets with the stable insets fully consumed.

This member is deprecated. Consuming of different parts individually of a WindowInsets instance is deprecated, since WindowInsets contains many different insets. Use #CONSUMED instead to stop dispatching insets. On android.os.Build.VERSION_CODES#R R, this method has no effect.

Java documentation for android.view.WindowInsets.consumeStableInsets().

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