Implement Kotlin Interfaces with SAM conversions
While experimenting LiveData observer, I encountered the following code and I had no idea how it works.
val observer = Observer<T> {
state.value = it
}
So I looked at the Observer source code in Java. It looks like this.
public interface Observe...
vtsen.hashnode.dev2 min read