hideOn

fun <Error class: unknown class>?.hideOn(layoutFlags: Int): <Error class: unknown class>?(source)

Hide the Preference on selected layouts.

Return

Preference if visible otherwise null.

hideOn is usually followed by some actions on the preference which are mostly unnecessary when the preference is disabled for the said layout thus returning null.