Skip to content

djleeds/video-shared-preferences-delegates

Repository files navigation

Companion Code for "Easy SharedPreferences with Delegated Properties in Kotlin"

This is the companion code for a video called Easy SharedPreferences with Delegated Properties in Kotlin. The video is focused on the concepts around delegated properties, and so it doesn't cover the rest of the Android code that was used when running the demos in the emulator. This project includes that code, so that you can see how it fits in with the rest of the app.

The video covers two different approaches - one simple and one more advanced approach (including better type safety, as well as custom keys and defaults). This repository contains both of these approaches, and you can find them in these two files:

The usage site for both of these approaches can be found in SettingsRepository.kt.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages