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

toggle

fun toggle(notifyListener: Boolean = true): Unit (source)

Changes the selected state of the action to the inverse of its current state.

Parameters

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