SandboxedSdkProvider.GetView(Context, Bundle, Int32, Int32) 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.
Requests a view to be remotely rendered to the client app process.
[Android.Runtime.Register("getView", "(Landroid/content/Context;Landroid/os/Bundle;II)Landroid/view/View;", "GetGetView_Landroid_content_Context_Landroid_os_Bundle_IIHandler", ApiSince=34)]
public abstract Android.Views.View GetView (Android.Content.Context windowContext, Android.OS.Bundle params, int width, int height);
[<Android.Runtime.Register("getView", "(Landroid/content/Context;Landroid/os/Bundle;II)Landroid/view/View;", "GetGetView_Landroid_content_Context_Landroid_os_Bundle_IIHandler", ApiSince=34)>]
abstract member GetView : Android.Content.Context * Android.OS.Bundle * int * int -> Android.Views.View
Parameters
- windowContext
- Context
the Context
of the display which meant to show the view
- params
- Bundle
list of params passed from the client application requesting the view
- width
- Int32
The view returned will be laid as if in a window of this width, in pixels.
- height
- Int32
The view returned will be laid as if in a window of this height, in pixels.
Returns
a View
which SDK sandbox pass to the client application requesting the view
- Attributes
Remarks
Requests a view to be remotely rendered to the client app process.
Returns View
will be wrapped into SurfacePackage
. the resulting SurfacePackage
will be sent back to the client application.
The SDK should not do any long-running tasks here, like I/O and network calls. Doing so can prevent the SDK from receiving requests from the client.
This member is deprecated. This method will no longer be supported as it is being used by SdkSandboxManager#requestSurfacePackage
which is getting deprecated.
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.