onItemSelected
fun Spinner.onItemSelected(onNothingSelect: (parent: AdapterView<*>?) -> Unit = { _ -> }, onItemSelect: (parent: AdapterView<*>?, view: View?, position: Int, id: Long) -> Unit = { _, _, _, _ -> }): AdapterView.OnItemSelectedListener
Callback executed when a spinner item is selected
Return
Am implemented OnItemSelectedListener
interface in case the same is needed for any other operation.