The Monster
08/24/2021, 11:01 PMbinding.button.setOnClickListener( View.OnClickListener {
})
binding.button.setOnClickListener {
}
Hey guys I am confused why I was able to skip the parenthesis on the 2nd example. The method takes a functional interface, but not a function, so how am I allowed to use the passing trailing lambda syntax here?Adam Powell
08/25/2021, 12:17 AM