SdkSandboxClientImportanceListener
interface SdkSandboxClientImportanceListener
android.app.sdksandbox.sdkprovider.SdkSandboxClientImportanceListener |
Used to notify the SDK about changes in the client's android.app.ActivityManager.RunningAppProcessInfo#importance
.
When an SDK wants to get notified about changes in client's importance, it should register an implementation of this interface by calling android.app.sdksandbox.sdkprovider.SdkSandboxController#registerSdkSandboxClientImportanceListener(java.util.concurrent.Executor,android.app.sdksandbox.sdkprovider.SdkSandboxClientImportanceListener)
.
Summary
Public methods | |
---|---|
abstract Unit |
onForegroundImportanceChanged(isForeground: Boolean) Invoked every time the client transitions from a value <= |
Public methods
onForegroundImportanceChanged
abstract fun onForegroundImportanceChanged(isForeground: Boolean): Unit
Invoked every time the client transitions from a value <= android.app.ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND
to a higher value or vice versa
Parameters | |
---|---|
isForeground |
Boolean: true when the client transitions to android.app.ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND or lower and false when it is the other way round. |