onItemsChanged

open fun onItemsChanged(structureChanged: Boolean)(source)

Called when an item is added or removed.

Parameters

structureChanged

true if the menu structure changed, false if only item properties changed. (Visibility is a structural property since it affects layout.)