SurfaceView.SurfaceControl Property
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.
Return a SurfaceControl which can be used for parenting Surfaces to this SurfaceView.
public virtual Android.Views.SurfaceControl? SurfaceControl { [Android.Runtime.Register("getSurfaceControl", "()Landroid/view/SurfaceControl;", "GetGetSurfaceControlHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getSurfaceControl", "()Landroid/view/SurfaceControl;", "GetGetSurfaceControlHandler", ApiSince=29)>]
member this.SurfaceControl : Android.Views.SurfaceControl
Property Value
The SurfaceControl for this SurfaceView.
- Attributes
Remarks
Return a SurfaceControl which can be used for parenting Surfaces to this SurfaceView.
Note that this SurfaceControl is effectively read-only. Its only well-defined usage is in using the SurfaceControl as a parent for an application's hierarchy of SurfaceControls. All other properties of the SurfaceControl, such as its position, may be mutated by the SurfaceView at any time which will override what the application is requesting. Do not apply any SurfaceControl.Transaction
to this SurfaceControl except for reparenting child SurfaceControls. See: SurfaceControl.Transaction#reparent
.
Java documentation for android.view.SurfaceView.getSurfaceControl()
.
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.