setVisibilityForAllItems

fun Menu.setVisibilityForAllItems(shouldShow: Boolean, filter: (MenuItem) -> Boolean)

Change visibility of all items for this menu

Parameters

shouldShow

Visibility

filter

Predicate for which menu items to hid