androidx.preference:preference-ktx
Official Description: Kotlin extensions for preferences
CommonsWare’s Notes
This artifact provides some extension functions and properties for the AndroidX edition
of PreferenceGroup
. If you find yourself working with PreferenceGroup
a lot manually, and you use Kotlin, you may be interested in this artifact for
things like:
-
forEach()
andforEachIndexed()
to iterate over all of the preferences in the group -
[]
,+=
and,-=
support for working with the preferences in the group -
size
andchildren
extension properties
Documentation
Versions
- Latest Stable: 1.1.1
- Latest Release Candidate: 1.1.0-rc01
- Latest Beta: 1.1.0-beta01
- Latest Alpha: 1.1.0-alpha05