Compartir a través de


View.PreferKeepClearRects Property

Definition

Set a preference to keep the provided rects clear from floating windows above this view's window.

public System.Collections.Generic.IList<Android.Graphics.Rect> PreferKeepClearRects { [Android.Runtime.Register("getPreferKeepClearRects", "()Ljava/util/List;", "", ApiSince=33)] get; [Android.Runtime.Register("setPreferKeepClearRects", "(Ljava/util/List;)V", "", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getPreferKeepClearRects", "()Ljava/util/List;", "", ApiSince=33)>]
[<set: Android.Runtime.Register("setPreferKeepClearRects", "(Ljava/util/List;)V", "", ApiSince=33)>]
member this.PreferKeepClearRects : System.Collections.Generic.IList<Android.Graphics.Rect> with get, set

Property Value

the list of rects, set by #setPreferKeepClearRects.

Attributes

Remarks

Property getter documentation:

Java documentation for android.view.View.getPreferKeepClearRects().

Property setter documentation:

Set a preference to keep the provided rects clear from floating windows above this view's window. This informs the system that these rects are considered vital areas for the user and that ideally they should not be covered. Setting this is only appropriate for UI where the user would likely take action to uncover it.

The system will try to respect this preference, but when not possible will ignore it.

Note: This is independent from #setPreferKeepClear. If both are set, both will be taken into account.

Java documentation for android.view.View.setPreferKeepClearRects(java.util.List<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