Implement Kotlin Interfaces with SAM conversions

Different ways of implementing Kotlin interfaces — using subclass conventional method, object keyword and functional (SAM) interfaces

Vincent Tsen

--

While experimenting LiveData observer, I encountered the following code and I had no idea how it works.

val observer = Observer<T> {…

--

--