| Start |
|---|
Observable properties The example prints |
Custom delegation The example prints |
Lazy initialization The example prints |
Map-backed properties The example prints |
| Delegate Can be used as a layer to reduce boilerplate Consider Kotlin's Null Type system and So let's say we have to save some sort of reference and we wanted to avoid memory leaks, here is where take for example this: Now this is just with one WeakReference. To Reduce this boilerplate, we can use a custom property delegate to help us like so: So Now we can use variables that are wrapped with |
Read Article
https://develop.horje.com/learn/1434/reference