Android.App.SdkSandbox Namespace
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.
Provides APIs for loading SDKs in a separate sandbox process and communicating with them.
Classes
| Name | Description |
|---|---|
| AppOwnedSdkSandboxInterface |
Represents a channel for an SDK in the sandbox process to interact with the app. |
| AppOwnedSdkSandboxInterface.InterfaceConsts |
Exposes the parcelable interface constants inherited by AppOwnedSdkSandboxInterface. |
| LoadSdkException |
Exception thrown by |
| LoadSdkException.InterfaceConsts |
Exposes the parcelable interface constants inherited by LoadSdkException. |
| RequestSurfacePackageException |
Exception thrown by |
| SandboxedSdk |
Represents an SDK loaded in the sandbox process. |
| SandboxedSdk.InterfaceConsts |
Exposes the parcelable interface constants inherited by SandboxedSdk. |
| SandboxedSdkProvider |
Encapsulates API which SDK sandbox can use to interact with SDKs loaded into it. |
| SdkSandboxManager |
Provides APIs to load |
Interfaces
| Name | Description |
|---|---|
| SdkSandboxManager.ISdkSandboxProcessDeathCallback |
A callback for tracking events SDK sandbox death. |
Enums
| Name | Description |
|---|---|
| LoadSdkErrorCode |
Identifies the reason that an SDK load request failed. |
| RequestSurfacePackageErrorCode |
Identifies a failure to obtain a surface package from a sandboxed SDK. |
| SandboxState |
Identifies whether the SDK sandbox is disabled or enabled with process isolation. |
Remarks
Applications use SdkSandboxManager to load and unload SDKs, receive sandbox process-death callbacks, and register application-owned binder interfaces. A SandboxedSdk gives access to a loaded SDK's binder. SDK implementations derive from SandboxedSdkProvider to handle loading and resource cleanup.
See the Android SDK sandbox package reference for the Android APIs and their availability.