setDependency

open fun setDependency(@Nullable dependencyKey: String)(source)

Sets the key of a preference that this preference will depend on. If that preference is not set or is off, this preference will be disabled.

Parameters

dependencyKey

The key of the preference that this depends on