getVisibilityState

abstract fun getVisibilityState(): Int

Obtains the visibility state maintained for the button. This is the state which the button will be assigned on a configuration change or on an Activity restart.

Return

The expected visibility state, one of View.GONE, View.INVISIBLE or View.VISIBLE.