Called when the UI visibility state changes.
true if the UI is visible, false if it is hidden.
true
false