IAttachedSurfaceControl.SetTouchableRegion(Region) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.