Added in API level 34
ViewTreeObserver.OnWindowVisibilityChangeListener
public
static
interface
ViewTreeObserver.OnWindowVisibilityChangeListener
android.view.ViewTreeObserver.OnWindowVisibilityChangeListener |
Interface definition for a callback to be invoked when the view hierarchy's window visibility changes.
Summary
Public methods | |
---|---|
abstract
void
|
onWindowVisibilityChanged(int visibility)
Callback method to be invoked when the window visibility changes in the view tree. |
Public methods
onWindowVisibilityChanged
Added in API level 34
public abstract void onWindowVisibilityChanged (int visibility)
Callback method to be invoked when the window visibility changes in the view tree.
Parameters | |
---|---|
visibility |
int : The new visibility of the window.
Value is View.VISIBLE , View.INVISIBLE , or View.GONE |