SandboxedSdkProvider.OnLoadSdk(Bundle) 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.
Does the work needed for the SDK to start handling requests.
[Android.Runtime.Register("onLoadSdk", "(Landroid/os/Bundle;)Landroid/app/sdksandbox/SandboxedSdk;", "GetOnLoadSdk_Landroid_os_Bundle_Handler", ApiSince=34)]
public abstract Android.App.SdkSandbox.SandboxedSdk OnLoadSdk (Android.OS.Bundle params);
[<Android.Runtime.Register("onLoadSdk", "(Landroid/os/Bundle;)Landroid/app/sdksandbox/SandboxedSdk;", "GetOnLoadSdk_Landroid_os_Bundle_Handler", ApiSince=34)>]
abstract member OnLoadSdk : Android.OS.Bundle -> Android.App.SdkSandbox.SandboxedSdk
Parameters
- params
- Bundle
list of params passed from the client when it loads the SDK. This can be empty.
Returns
Returns a SandboxedSdk
, passed back to the client. The IBinder used to create
the SandboxedSdk
object will be used by the client to call into the SDK.
- Attributes
Remarks
Does the work needed for the SDK to start handling requests.
This function is called by the SDK sandbox after it loads the SDK.
SDK should do any work to be ready to handle upcoming requests. It 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. Additionally, it should not do initialization that depends on other SDKs being loaded into the SDK sandbox.
The SDK should not do any operations requiring a Context
object before this method has been called.
Java documentation for android.app.sdksandbox.SandboxedSdkProvider.onLoadSdk(android.os.Bundle)
.
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.