Compartilhar via


ViewTreeObserver.AddOnSystemGestureExclusionRectsChangedListener Method

Definition

Add a listener to be notified when the tree's <em>transformed</em> gesture exclusion rects change.

[Android.Runtime.Register("addOnSystemGestureExclusionRectsChangedListener", "(Ljava/util/function/Consumer;)V", "", ApiSince=29)]
public void AddOnSystemGestureExclusionRectsChangedListener (Java.Util.Functions.IConsumer listener);
[<Android.Runtime.Register("addOnSystemGestureExclusionRectsChangedListener", "(Ljava/util/function/Consumer;)V", "", ApiSince=29)>]
member this.AddOnSystemGestureExclusionRectsChangedListener : Java.Util.Functions.IConsumer -> unit

Parameters

listener
IConsumer

listener to add

Attributes

Remarks

Add a listener to be notified when the tree's <em>transformed</em> gesture exclusion rects change. This could be the result of an animation or other layout change, or a view calling View#setSystemGestureExclusionRects(List).

Java documentation for android.view.ViewTreeObserver.addOnSystemGestureExclusionRectsChangedListener(java.util.function.Consumer<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