Site icon

Easy SharedPreferences with Delegated Properties in Kotlin

With Kotlin’s property delegates, you can easily customize the behavior of a property. In this video, we’ll learn how Kotlin’s delegated properties work, by turning Android’s SharedPreferences into a delegate.

To see this code working within the context of a full Android app, see the companion code:

Exit mobile version