SdkSandboxClientImportanceListener


public interface SdkSandboxClientImportanceListener

android.app.sdksandbox.sdkprovider.SdkSandboxClientImportanceListener


Used to notify the SDK about changes in the client's 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(java.util.concurrent.Executor, android.app.sdksandbox.sdkprovider.SdkSandboxClientImportanceListener).

Summary

Public methods

abstract void onForegroundImportanceChanged(boolean isForeground)

Invoked every time the client transitions from a value <= ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND to a higher value or vice versa

Public methods

onForegroundImportanceChanged

public abstract void onForegroundImportanceChanged (boolean isForeground)

Invoked every time the client transitions from a value <= ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND to a higher value or vice versa

Parameters
isForeground boolean: true when the client transitions to ActivityManager.RunningAppProcessInfo.IMPORTANCE_FOREGROUND or lower and false when it is the other way round.