SdkSandboxController


open class SdkSandboxController
kotlin.Any
   ↳ android.app.sdksandbox.sdkprovider.SdkSandboxController

Controller that is used by SDK loaded in the sandbox to access information provided by the sdk sandbox.

Summary

Constants
static String

Public methods
open MutableList<AppOwnedSdkSandboxInterface!>

Fetches all AppOwnedSdkSandboxInterface that are registered by the app.

open String

Returns the package name of the client app.

open SharedPreferences

Returns SharedPreferences containing data synced from the client app.

open MutableList<SandboxedSdk!>

Fetches information about Sdks that are loaded in the sandbox.

open Unit
loadSdk(sdkName: String, params: Bundle, executor: Executor, receiver: OutcomeReceiver<SandboxedSdk!, LoadSdkException!>)

Loads SDK in an SDK sandbox java process.

open IBinder

Returns an identifier for a SdkSandboxActivityHandler after registering it.

open Unit

Registers a listener to be notified of changes in the client's process importance.

open Unit

Unregister an already registered SdkSandboxActivityHandler.

open Unit

Unregisters a listener previously registered.

Constants

SDK_SANDBOX_CONTROLLER_SERVICE

static val SDK_SANDBOX_CONTROLLER_SERVICE: String

Deprecated: Deprecated in Java.

Value: "sdk_sandbox_controller_service"

Public methods

getAppOwnedSdkSandboxInterfaces

open fun getAppOwnedSdkSandboxInterfaces(): MutableList<AppOwnedSdkSandboxInterface!>

Deprecated: Deprecated in Java.

Fetches all AppOwnedSdkSandboxInterface that are registered by the app.

Return
MutableList<AppOwnedSdkSandboxInterface!> This value cannot be null.

getClientPackageName

open fun getClientPackageName(): String

Deprecated: Deprecated in Java.

Returns the package name of the client app.

Return
String This value cannot be null.

getClientSharedPreferences

open fun getClientSharedPreferences(): SharedPreferences

Deprecated: Deprecated in Java.

Returns SharedPreferences containing data synced from the client app.

Return
SharedPreferences This value cannot be null.

getSandboxedSdks

open fun getSandboxedSdks(): MutableList<SandboxedSdk!>

Deprecated: Deprecated in Java.

Fetches information about Sdks that are loaded in the sandbox.

Return
MutableList<SandboxedSdk!> This value cannot be null.

loadSdk

open fun loadSdk(
    sdkName: String,
    params: Bundle,
    executor: Executor,
    receiver: OutcomeReceiver<SandboxedSdk!, LoadSdkException!>
): Unit

Deprecated: Deprecated in Java.

Loads SDK in an SDK sandbox java process.

Parameters
sdkName String: This value cannot be null.
params Bundle: This value cannot be null.
executor Executor: 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 Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
receiver OutcomeReceiver<SandboxedSdk!, LoadSdkException!>: This value cannot be null.

registerSdkSandboxActivityHandler

open fun registerSdkSandboxActivityHandler(sdkSandboxActivityHandler: SdkSandboxActivityHandler): IBinder

Deprecated: Deprecated in Java.

Returns an identifier for a SdkSandboxActivityHandler after registering it.

Parameters
sdkSandboxActivityHandler SdkSandboxActivityHandler: This value cannot be null.
Return
IBinder This value cannot be null.

registerSdkSandboxClientImportanceListener

open fun registerSdkSandboxClientImportanceListener(
    executor: Executor,
    listener: SdkSandboxClientImportanceListener
): Unit

Deprecated: Deprecated in Java.

Registers a listener to be notified of changes in the client's process importance.

Parameters
executor Executor: 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 Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.
listener SdkSandboxClientImportanceListener: This value cannot be null.

unregisterSdkSandboxActivityHandler

open fun unregisterSdkSandboxActivityHandler(sdkSandboxActivityHandler: SdkSandboxActivityHandler): Unit

Deprecated: Deprecated in Java.

Unregister an already registered SdkSandboxActivityHandler.

Parameters
sdkSandboxActivityHandler SdkSandboxActivityHandler: This value cannot be null.
Return
Unit This value cannot be null.

unregisterSdkSandboxClientImportanceListener

open fun unregisterSdkSandboxClientImportanceListener(listener: SdkSandboxClientImportanceListener): Unit

Deprecated: Deprecated in Java.

Unregisters a listener previously registered.

Parameters
listener SdkSandboxClientImportanceListener: This value cannot be null.