共用方式為


WindowInsets.IsConsumed Property

Definition

Check if these insets have been fully consumed.

public bool IsConsumed { [Android.Runtime.Register("isConsumed", "()Z", "")] get; }
[<get: Android.Runtime.Register("isConsumed", "()Z", "")>]
member this.IsConsumed : bool

Property Value

true if the insets have been fully consumed.

Attributes

Remarks

Check if these insets have been fully consumed.

Insets are considered "consumed" if the applicable consume* methods have been called such that all insets have been set to zero. This affects propagation of insets through the view hierarchy; insets that have not been fully consumed will continue to propagate down to child views.

The result of this method is equivalent to the return value of View#fitSystemWindows(android.graphics.Rect).

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

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