SdkSandboxController
open classSdkSandboxController
| 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 |
| open String |
Returns the package name of the client app. |
| open SharedPreferences |
Returns |
| 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 |
registerSdkSandboxActivityHandler(sdkSandboxActivityHandler: SdkSandboxActivityHandler)Returns an identifier for a |
| open Unit |
registerSdkSandboxClientImportanceListener(executor: Executor, listener: SdkSandboxClientImportanceListener)Registers a listener to be notified of changes in the client's process importance. |
| open Unit |
unregisterSdkSandboxActivityHandler(sdkSandboxActivityHandler: SdkSandboxActivityHandler)Unregister an already registered |
| open Unit |
Unregisters a listener previously registered. |
Constants
SDK_SANDBOX_CONTROLLER_SERVICE
static valSDK_SANDBOX_CONTROLLER_SERVICE: String
Deprecated: Deprecated in Java.
Value: "sdk_sandbox_controller_service"Public methods
getAppOwnedSdkSandboxInterfaces
open fungetAppOwnedSdkSandboxInterfaces(): 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 fungetClientPackageName(): String
Deprecated: Deprecated in Java.
Returns the package name of the client app.
| Return | |
|---|---|
String |
This value cannot be null. |
getClientSharedPreferences
open fungetClientSharedPreferences(): SharedPreferences
Deprecated: Deprecated in Java.
Returns SharedPreferences containing data synced from the client app.
| Return | |
|---|---|
SharedPreferences |
This value cannot be null. |
getSandboxedSdks
open fungetSandboxedSdks(): 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 funloadSdk(
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 funregisterSdkSandboxActivityHandler(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 funregisterSdkSandboxClientImportanceListener(
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 fununregisterSdkSandboxActivityHandler(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 fununregisterSdkSandboxClientImportanceListener(listener: SdkSandboxClientImportanceListener): Unit
Deprecated: Deprecated in Java.
Unregisters a listener previously registered.
| Parameters | |
|---|---|
listener |
SdkSandboxClientImportanceListener: This value cannot be null. |