SdkSandboxManager.LoadSdkCallback
public
static
interface
SdkSandboxManager.LoadSdkCallback
android.app.sdksandbox.SdkSandboxManager.LoadSdkCallback |
A callback for tracking events regarding loading and interacting with SDKs.
Callback is registered to SdkSandboxManager
at the moment of loading a new SDK by
passing an implementation of this callback to SdkSandboxManager#loadSdk(String,
Bundle, Executor, LoadSdkCallback)
.
Summary
Public methods | |
---|---|
abstract
void
|
onLoadSdkFailure(int errorCode, String errorMsg)
This notifies client application that the requested Sdk is failed to be loaded. |
abstract
void
|
onLoadSdkSuccess(Bundle params)
This notifies client application that the requested Sdk is successfully loaded. |
Public methods
onLoadSdkFailure
public abstract void onLoadSdkFailure (int errorCode, String errorMsg)
This notifies client application that the requested Sdk is failed to be loaded.
Parameters | |
---|---|
errorCode |
int : int code for the error
Value is SdkSandboxManager.LOAD_SDK_NOT_FOUND , SdkSandboxManager.LOAD_SDK_ALREADY_LOADED , or SdkSandboxManager.LOAD_SDK_INTERNAL_ERROR |
errorMsg |
String : a String description of the error
This value cannot be null . |
onLoadSdkSuccess
public abstract void onLoadSdkSuccess (Bundle params)
This notifies client application that the requested Sdk is successfully loaded.
Parameters | |
---|---|
params |
Bundle : list of params returned from Sdk to the App.
This value cannot be null . |