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 within a SurfaceControlViewHost.SurfacePackage within this SurfaceView. This can be called independently of the SurfaceView lifetime callbacks. SurfaceView will internally manage reparenting the package to our Surface as it is created and destroyed. If this SurfaceView is above its host Surface (see setZOrderOnTop(boolean) then the embedded Surface hierarchy will be able to receive input. This will take ownership of the SurfaceControl contained inside the SurfacePackage and free the caller of the obligation to call SurfaceControlViewHost.SurfacePackage.release . However, note that SurfaceControlViewHost.SurfacePackage.release and SurfaceControlViewHost.release are not the same. While the ownership of this particular SurfaceControlViewHost.SurfacePackage will be taken by the SurfaceView the underlying SurfaceControlViewHost remains managed by it's original remote-owner. Users can call SurfaceView.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 Android.Views.SurfaceControlViewHost+SurfacePackage value used for p.
- 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.