AppVisibilityListener

  • The AppVisibilityListener interface is deprecated and should not be used.

  • Developers should monitor activity lifecycle changes using alternative methods like overriding Activity lifecycle methods or using Application.ActivityLifecycleCallbacks.

  • This interface was previously used to monitor the sender application's UI visibility with onAppEnteredBackground() and onAppEnteredForeground() methods.

public interface AppVisibilityListener

This interface is deprecated.
Don't use the SDK to listen to app visibility changes. Use alternative ways for watching activity lifecycle changes such as by overriding Activity lifecycle change methods, or by using Application.ActivityLifecycleCallbacks.

A listener interface for monitoring the sender application's UI visibility.

Public Method Summary

abstract void
onAppEnteredBackground()
Called when the application's UI enters the background.
abstract void
onAppEnteredForeground()
Called when the application's UI enters the foreground.

Public Methods

public abstract void onAppEnteredBackground ()

Called when the application's UI enters the background.

public abstract void onAppEnteredForeground ()

Called when the application's UI enters the foreground.