SurfaceControl.Builder.SetParent(SurfaceControl) Method

Definition

Set a parent surface for our new SurfaceControl. Child surfaces are constrained to the onscreen region of their parent. Furthermore they stack relatively in Z order, and inherit the transformation of the parent.

[Android.Runtime.Register("setParent", "(Landroid/view/SurfaceControl;)Landroid/view/SurfaceControl$Builder;", "GetSetParent_Landroid_view_SurfaceControl_Handler", ApiSince=29)]
public virtual Android.Views.SurfaceControl.Builder SetParent(Android.Views.SurfaceControl? parent);
[<Android.Runtime.Register("setParent", "(Landroid/view/SurfaceControl;)Landroid/view/SurfaceControl$Builder;", "GetSetParent_Landroid_view_SurfaceControl_Handler", ApiSince=29)>]
abstract member SetParent : Android.Views.SurfaceControl -> Android.Views.SurfaceControl.Builder
override this.SetParent : Android.Views.SurfaceControl -> Android.Views.SurfaceControl.Builder

Parameters

parent
SurfaceControl

The Android.Views.SurfaceControl value used for parent.

Returns

The result of the set parent operation.

Attributes

Remarks

For details, see the Android reference documentation for android.view.SurfaceControl.Builder.setParent.

Java documentation for android.view.SurfaceControl.Builder.setParent.

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