What does the underscore by itself mean

setOnCheckedChangeListener {
_ , is Checked -> crime.isSolved = isChecked
}
Pg 254 android programming 4th edition

It is commonly used to denote a required parameter that you don’t care about in the current scenario. In this case, the context parameter to the listener is not used in the handler.

1 Like

Thanks for clarifying