Megosztás a következőn keresztül:


View.GatherTransparentRegion(Region) Method

Definition

This is used by the ViewRoot to perform an optimization when the view hierarchy contains one or several SurfaceView.

[Android.Runtime.Register("gatherTransparentRegion", "(Landroid/graphics/Region;)Z", "GetGatherTransparentRegion_Landroid_graphics_Region_Handler", ApiSince=31)]
public virtual bool GatherTransparentRegion (Android.Graphics.Region? region);
[<Android.Runtime.Register("gatherTransparentRegion", "(Landroid/graphics/Region;)Z", "GetGatherTransparentRegion_Landroid_graphics_Region_Handler", ApiSince=31)>]
abstract member GatherTransparentRegion : Android.Graphics.Region -> bool
override this.GatherTransparentRegion : Android.Graphics.Region -> bool

Parameters

region
Region

The transparent region for this ViewAncestor (window).

Returns

Returns true if the effective visibility of the view at this point is opaque, regardless of the transparent region; returns false if it is possible for underlying windows to be seen behind the view.

Attributes

Remarks

This is used by the ViewRoot to perform an optimization when the view hierarchy contains one or several SurfaceView. SurfaceView is always considered transparent, but its children are not, therefore all View objects remove themselves from the global transparent region (passed as a parameter to this function).

Java documentation for android.view.View.gatherTransparentRegion(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