WindowInsets.ReplaceSystemWindowInsets Method

Definition

Overloads

ReplaceSystemWindowInsets(Rect)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

ReplaceSystemWindowInsets(Int32, Int32, Int32, Int32)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

ReplaceSystemWindowInsets(Rect)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

[Android.Runtime.Register("replaceSystemWindowInsets", "(Landroid/graphics/Rect;)Landroid/view/WindowInsets;", "")]
public Android.Views.WindowInsets ReplaceSystemWindowInsets (Android.Graphics.Rect? systemWindowInsets);
[<Android.Runtime.Register("replaceSystemWindowInsets", "(Landroid/graphics/Rect;)Landroid/view/WindowInsets;", "")>]
member this.ReplaceSystemWindowInsets : Android.Graphics.Rect -> Android.Views.WindowInsets

Parameters

systemWindowInsets
Rect

New system window insets. Each field is the inset in pixels for that edge

Returns

A modified copy of this WindowInsets

Attributes

Remarks

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

Note: If the system window insets are already consumed, this method will return them unchanged on android.os.Build.VERSION_CODES#Q Q and later. Prior to android.os.Build.VERSION_CODES#Q Q, the new values were applied regardless of whether they were consumed, and this method returns invalid non-zero consumed insets.

This member is deprecated. use Builder#Builder(WindowInsets) with Builder#setSystemWindowInsets(Insets) instead.

Java documentation for android.view.WindowInsets.replaceSystemWindowInsets(android.graphics.Rect).

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

ReplaceSystemWindowInsets(Int32, Int32, Int32, Int32)

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

[Android.Runtime.Register("replaceSystemWindowInsets", "(IIII)Landroid/view/WindowInsets;", "")]
public Android.Views.WindowInsets ReplaceSystemWindowInsets (int left, int top, int right, int bottom);
[<Android.Runtime.Register("replaceSystemWindowInsets", "(IIII)Landroid/view/WindowInsets;", "")>]
member this.ReplaceSystemWindowInsets : int * int * int * int -> Android.Views.WindowInsets

Parameters

left
Int32

New left inset in pixels

top
Int32

New top inset in pixels

right
Int32

New right inset in pixels

bottom
Int32

New bottom inset in pixels

Returns

A modified copy of this WindowInsets

Attributes

Remarks

Returns a copy of this WindowInsets with selected system window insets replaced with new values.

Note: If the system window insets are already consumed, this method will return them unchanged on android.os.Build.VERSION_CODES#Q Q and later. Prior to android.os.Build.VERSION_CODES#Q Q, the new values were applied regardless of whether they were consumed, and this method returns invalid non-zero consumed insets.

This member is deprecated. use Builder#Builder(WindowInsets) with Builder#setSystemWindowInsets(Insets) instead.

Java documentation for android.view.WindowInsets.replaceSystemWindowInsets(int, int, int, int).

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