core-ktx / androidx.view / android.view.View / isInvisible

isInvisible

inline var View.isInvisible: Boolean

Returns true when this view's visibility is View.INVISIBLE, false otherwise.

if (view.isInvisible) {
    // Behavior...
}

Setting this property to true sets the visibility to View.INVISIBLE, false to View.VISIBLE.

view.isInvisible = true