Hello,
Someone can explain me what does it mean the → view in :
myButton.setOnClickListener { → view
}
Can we delete it ? Or what’s the utility for it ?
Kinds regards
Hello,
Someone can explain me what does it mean the → view in :
myButton.setOnClickListener { → view
}
Can we delete it ? Or what’s the utility for it ?
Kinds regards
It’s a syntax of lambda. View.OnClickListener is a Functional Interface.