SdkSandboxManager.LoadSdk(String, Bundle, IExecutor, IOutcomeReceiver) 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.
Loads SDK in an SDK sandbox java process.
[Android.Runtime.Register("loadSdk", "(Ljava/lang/String;Landroid/os/Bundle;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)]
public void LoadSdk(string sdkName, Android.OS.Bundle params, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("loadSdk", "(Ljava/lang/String;Landroid/os/Bundle;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=34)>]
member this.LoadSdk : string * Android.OS.Bundle * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- sdkName
- String
name of the SDK to be loaded. This value cannot be null.
- params
- Bundle
additional parameters to be passed to the SDK in the form of a Bundle as agreed between the client and the SDK. This value cannot be null.
- executor
- IExecutor
the Executor on which to invoke the receiver. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use MainExecutor. Otherwise, provide an Executor that dispatches to an appropriate thread.
- receiver
- IOutcomeReceiver
This either receives a SandboxedSdk on a successful run, or LoadSdkException. This value cannot be null.
- Attributes
Remarks
Loads SDK in an SDK sandbox java process.
Loads SDK library with sdkName to an SDK sandbox process asynchronously. The caller will be notified through the receiver.
The caller should already declare SDKs it depends on in its manifest using <uses-sdk-library> tag. The caller may only load SDKs it depends on into the SDK sandbox.
When the client application loads the first SDK, a new SDK sandbox process will be created. If a sandbox has already been created for the client application, additional SDKs will be loaded into the same sandbox.
When the SDK sandbox is enabled, if neither the caller nor its SDK sandbox is in the foreground, the receiver reports a LoadSdkException.
Android reference for android.app.sdksandbox.SdkSandboxManager.loadSdk.
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.