connectItemsChanged

fun connectItemsChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (position: Int, removed: Int, added: Int) -> Unit): <Error class: unknown class>

Emitted when a change has occurred to the menu.

The only changes that can occur to a menu is that items are removed or added. Items may not change (except by being removed and added back in the same location). This signal is capable of describing both of those changes (at the same time).

The signal means that starting at the index @position, @removed items were removed and @added items were added in their place. If

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: position the position of the change; removed the number of items removed; added the number of items added