SurfaceView.SetChildSurfacePackage 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.
Displays the view hierarchy embedded in a SurfaceControlViewHost.SurfacePackage within this SurfaceView. You can call this method independently of the SurfaceView lifetime callbacks. The SurfaceView manages reparenting the package to its surface as the surface is created and destroyed. If this SurfaceView is above its host surface (see SetZOrderOnTop(Boolean)), the embedded surface hierarchy can receive input. The SurfaceView takes ownership of the SurfaceControl in the package, so the caller does not need to call Release(). That method differs from Release(); the underlying SurfaceControlViewHost remains managed by its original remote owner. Use ClearChildSurfacePackage() to clear the package.
[Android.Runtime.Register("setChildSurfacePackage", "(Landroid/view/SurfaceControlViewHost$SurfacePackage;)V", "GetSetChildSurfacePackage_Landroid_view_SurfaceControlViewHost_SurfacePackage_Handler", ApiSince=30)]
public virtual void SetChildSurfacePackage(Android.Views.SurfaceControlViewHost.SurfacePackage p);
[<Android.Runtime.Register("setChildSurfacePackage", "(Landroid/view/SurfaceControlViewHost$SurfacePackage;)V", "GetSetChildSurfacePackage_Landroid_view_SurfaceControlViewHost_SurfacePackage_Handler", ApiSince=30)>]
abstract member SetChildSurfacePackage : Android.Views.SurfaceControlViewHost.SurfacePackage -> unit
override this.SetChildSurfacePackage : Android.Views.SurfaceControlViewHost.SurfacePackage -> unit
Parameters
The SurfacePackage to embed.
- Attributes
Remarks
For details, see the Android reference documentation for android.view.SurfaceView.setChildSurfacePackage.
Java documentation for android.view.SurfaceView.setChildSurfacePackage.
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.