android-components / mozilla.components.concept.toolbar / Toolbar / ActionToggleButton / setSelected

setSelected

fun setSelected(selected: Boolean, notifyListener: Boolean = true): Unit (source)

Changes the selected state of the action.

Parameters

selected - The new selected state

notifyListener - If true (default) the listener will be notified about a state change.