SdkSandboxClientImportanceListener
interfaceSdkSandboxClientImportanceListener
| 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 SdkSandboxController.registerSdkSandboxClientImportanceListener(Executor, SdkSandboxClientImportanceListener).
Summary
| Public methods | |
|---|---|
| abstract Unit |
onForegroundImportanceChanged(isForeground: Boolean)Invoked every time the client transitions from a value <= |
Public methods
onForegroundImportanceChanged
abstract funonForegroundImportanceChanged(isForeground: Boolean): Unit
Deprecated: Deprecated in Java.
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. |