AI-generated Key Takeaways
-
The AppVisibilityListener interface is deprecated and should not be used.
-
Alternative methods for monitoring activity lifecycle changes include overriding Activity lifecycle methods or using Application.ActivityLifecycleCallbacks.
-
The interface was designed to listen for the sender application's UI visibility changes.
-
It has two abstract methods: onAppEnteredBackground and onAppEnteredForeground.
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.