IAttachedSurfaceControl.SetChildBoundingInsets(Rect) 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.
Set a crop region on all children parented to the layer represented by this AttachedSurfaceControl.
[Android.Runtime.Register("setChildBoundingInsets", "(Landroid/graphics/Rect;)V", "GetSetChildBoundingInsets_Landroid_graphics_Rect_Handler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void SetChildBoundingInsets (Android.Graphics.Rect insets);
[<Android.Runtime.Register("setChildBoundingInsets", "(Landroid/graphics/Rect;)V", "GetSetChildBoundingInsets_Landroid_graphics_Rect_Handler:Android.Views.IAttachedSurfaceControl, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member SetChildBoundingInsets : Android.Graphics.Rect -> unit
override this.SetChildBoundingInsets : Android.Graphics.Rect -> unit
Parameters
- insets
- Rect
The insets in each direction by which to bound the children expressed in window-space.
- Attributes
Remarks
Set a crop region on all children parented to the layer represented by this AttachedSurfaceControl. This includes SurfaceView, and an example usage may be to ensure that SurfaceView with android.view.SurfaceView#setZOrderOnTop
are cropped to a region not including the app bar.
This cropped is expressed in terms of insets in window-space. Negative insets are considered invalid and will produce an exception. Insets of zero will produce the same result as if this function had never been called.
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.