onWindowFocusChanged

open override fun onWindowFocusChanged(hasWindowFocus: Boolean)

Called when the window containing the view gains or loses focus.