Implement Kotlin Interfaces with SAM conversions
Different ways of implementing Kotlin interfaces — using subclass conventional method, object keyword and functional (SAM) interfaces
2 min readDec 2, 2022
While experimenting LiveData
observer, I encountered the following code and I had no idea how it works.
val observer = Observer<T> {…