SurfaceControlViewHost Constructors
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.
Overloads
SurfaceControlViewHost(IntPtr, JniHandleOwnership) | |
SurfaceControlViewHost(Context, Display, IBinder) |
Construct a new SurfaceControlViewHost. |
SurfaceControlViewHost(IntPtr, JniHandleOwnership)
protected SurfaceControlViewHost (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Views.SurfaceControlViewHost : nativeint * Android.Runtime.JniHandleOwnership -> Android.Views.SurfaceControlViewHost
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Applies to
SurfaceControlViewHost(Context, Display, IBinder)
Construct a new SurfaceControlViewHost.
[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;Landroid/os/IBinder;)V", "", ApiSince=30)]
public SurfaceControlViewHost (Android.Content.Context context, Android.Views.Display display, Android.OS.IBinder? hostToken);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;Landroid/os/IBinder;)V", "", ApiSince=30)>]
new Android.Views.SurfaceControlViewHost : Android.Content.Context * Android.Views.Display * Android.OS.IBinder -> Android.Views.SurfaceControlViewHost
Parameters
- context
- Context
The Context object for your activity or application.
- display
- Display
The Display the hierarchy will be placed on.
- hostToken
- IBinder
The host token, as discussed above.
- Attributes
Remarks
Construct a new SurfaceControlViewHost. The root Surface will be allocated internally and is accessible via getSurfacePackage().
The parameter, primarily used for ANR reporting, must be obtained from whomever will be hosting the embedded hierarchy. It's accessible from SurfaceView#getHostToken
.
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.