executeAction

abstract fun executeAction(data: List<Any>, triggeringButtonData: Any? = null, deselectedButtonData: Any? = null)

Override me! Gets called whenever a button in this group gets clicked. Implement the actual logic you want your button group to perform in here.

Parameters

data

a list of the data of all currently active buttons

triggeringButtonData

data of the button that was clicked if it was turned active. Null otherwise.

deselectedButtonData

data of the button that was clicked if it was turned inactive. Null otherwise.