SdkSandboxController
public
class
SdkSandboxController
extends Object
| java.lang.Object | |
| ↳ | android.app.sdksandbox.sdkprovider.SdkSandboxController |
This class was deprecated
in API level 37.
The SDK sandbox is no longer supported.
Controller that is used by SDK loaded in the sandbox to access information provided by the sdk sandbox.
Summary
Constants | |
|---|---|
String |
SDK_SANDBOX_CONTROLLER_SERVICE
|
Public methods | |
|---|---|
List<AppOwnedSdkSandboxInterface>
|
getAppOwnedSdkSandboxInterfaces()
Fetches all |
String
|
getClientPackageName()
Returns the package name of the client app. |
SharedPreferences
|
getClientSharedPreferences()
Returns |
List<SandboxedSdk>
|
getSandboxedSdks()
Fetches information about Sdks that are loaded in the sandbox. |
void
|
loadSdk(String sdkName, Bundle params, Executor executor, OutcomeReceiver<SandboxedSdk, LoadSdkException> receiver)
Loads SDK in an SDK sandbox java process. |
IBinder
|
registerSdkSandboxActivityHandler(SdkSandboxActivityHandler sdkSandboxActivityHandler)
Returns an identifier for a |
void
|
registerSdkSandboxClientImportanceListener(Executor executor, SdkSandboxClientImportanceListener listener)
Registers a listener to be notified of changes in the client's process importance. |
void
|
unregisterSdkSandboxActivityHandler(SdkSandboxActivityHandler sdkSandboxActivityHandler)
Unregister an already registered |
void
|
unregisterSdkSandboxClientImportanceListener(SdkSandboxClientImportanceListener listener)
Unregisters a listener previously registered. |
Inherited methods | |
|---|---|
Constants
SDK_SANDBOX_CONTROLLER_SERVICE
public static final String SDK_SANDBOX_CONTROLLER_SERVICE
Constant Value: "sdk_sandbox_controller_service"
Public methods
getAppOwnedSdkSandboxInterfaces
public List<AppOwnedSdkSandboxInterface> getAppOwnedSdkSandboxInterfaces ()
Fetches all AppOwnedSdkSandboxInterface that are registered by the app.
| Returns | |
|---|---|
List<AppOwnedSdkSandboxInterface> |
This value cannot be null. |
getClientPackageName
public String getClientPackageName ()
Returns the package name of the client app.
| Returns | |
|---|---|
String |
This value cannot be null. |
getClientSharedPreferences
public SharedPreferences getClientSharedPreferences ()
Returns SharedPreferences containing data synced from the client app.
| Returns | |
|---|---|
SharedPreferences |
This value cannot be null. |
getSandboxedSdks
public List<SandboxedSdk> getSandboxedSdks ()
Fetches information about Sdks that are loaded in the sandbox.
| Returns | |
|---|---|
List<SandboxedSdk> |
This value cannot be null. |
loadSdk
public void loadSdk (String sdkName, Bundle params, Executor executor, OutcomeReceiver<SandboxedSdk, LoadSdkException> receiver)
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: This value cannot be null. |
registerSdkSandboxActivityHandler
public IBinder registerSdkSandboxActivityHandler (SdkSandboxActivityHandler sdkSandboxActivityHandler)
Returns an identifier for a SdkSandboxActivityHandler after registering it.
| Parameters | |
|---|---|
sdkSandboxActivityHandler |
SdkSandboxActivityHandler: This value cannot be null. |
| Returns | |
|---|---|
IBinder |
This value cannot be null. |
registerSdkSandboxClientImportanceListener
public void registerSdkSandboxClientImportanceListener (Executor executor, SdkSandboxClientImportanceListener listener)
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
public void unregisterSdkSandboxActivityHandler (SdkSandboxActivityHandler sdkSandboxActivityHandler)
Unregister an already registered SdkSandboxActivityHandler.
| Parameters | |
|---|---|
sdkSandboxActivityHandler |
SdkSandboxActivityHandler: This value cannot be null. |
| Returns | |
|---|---|
void |
This value cannot be null. |
unregisterSdkSandboxClientImportanceListener
public void unregisterSdkSandboxClientImportanceListener (SdkSandboxClientImportanceListener listener)
Unregisters a listener previously registered.
| Parameters | |
|---|---|
listener |
SdkSandboxClientImportanceListener: This value cannot be null. |