Reactive Approach to Delegation in Kotlin
summary
Kotlin delegated properties drive concrete outcomes: uses lazy, observable delegate, and vetoable for real view state management; a custom animated button implements a sealed-class state machine and delegates state changes to an observable so click handling avoids nested ifs; map delegation parses dynamic API fields into properties; lateinit/NotNull and thread modes for lazy are used; result is fewer lines, partial UI updates instead of full redraws, and a working custom view with simpler update logic.
AI-written summary · about
chapters (38)
- 0:00Introduction
- 1:05Origin of Delegation
- 2:09Types of Delegation
- 4:05Delegation
- 5:35Compiler
- 6:28Property Delegation
- 7:21Property Interfaces
- 8:40Lazy Delegate
- 11:15Thread Synchronization
- 11:31Thread Mode
- 13:47Not Known Delegate
- 15:05Map
- 15:24Map Extensions
- 16:00Map Properties
- 16:28Map Key
- 16:56Map Fields
- 17:43Observable
- 18:21Initial Value
- 18:55Lambda Function
- 19:20NotifyDataSetChange
- 20:03Delegated observable
- 20:57Delegated variable
- 21:37List adapter
- 21:53Variable in
- 22:09Bounded
- 22:31Validation
- 24:16Visibility
- 24:45Background Resource
- 25:09Change Background Resource
- 25:44Show Send Button
- 29:10BindAnimation
- 29:26State Variables
- 30:27API Response Status
- 31:07Show
- 33:22Show Animated View
- 34:11Combine User Intents
- 34:38Delegate Property
- 35:25Conclusion








