Compartilhar via


IAttachedSurfaceControl.SetTouchableRegion(Region) Method

Definition

Sets the touchable region for this SurfaceControl, expressed in surface local coordinates.

[Android.Runtime.Register("setTouchableRegion", "(Landroid/graphics/Region;)V", "GetSetTouchableRegion_Landroid_graphics_Region_Handler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)]
public virtual void SetTouchableRegion (Android.Graphics.Region? r);
[<Android.Runtime.Register("setTouchableRegion", "(Landroid/graphics/Region;)V", "GetSetTouchableRegion_Landroid_graphics_Region_Handler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=33)>]
abstract member SetTouchableRegion : Android.Graphics.Region -> unit
override this.SetTouchableRegion : Android.Graphics.Region -> unit

Parameters

r
Region

The region to use or null to use the entire Layer bounds

Attributes

Remarks

Sets the touchable region for this SurfaceControl, expressed in surface local coordinates. By default the touchable region is the entire Layer, indicating that if the layer is otherwise eligible to receive touch it receives touch on the entire surface. Setting the touchable region allows the SurfaceControl to receive touch in some regions, while allowing for pass-through in others.

Java documentation for android.view.AttachedSurfaceControl.setTouchableRegion(android.graphics.Region).

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