setSelected

fun setSelected(key: String, selected: Boolean): Boolean

The option key identifies the control; its typed value stays in Kotlin. In a single selection group, selecting moves the selection and deselecting follows the group's deselection policy.