onVisibilityChanged

abstract fun onVisibilityChanged(isVisible: Boolean, isForegrounded: Boolean)

Called whenever the view visibility changes

Parameters

isVisible

The visibility state.

isForegrounded

The app state.