setSubMenuItems

open fun setSubMenuItems(@Nullable subMenuItems: List<ContextualToolbarMenuItem>, @Nullable defaultSelectedMenuItem: ContextualToolbarMenuItem)

Sets the submenu items to the menu item and a default selected item.

Parameters

subMenuItems

Menu items to be displayed once this item is clicked, null if no owners.

defaultSelectedMenuItem

Item to be selected by default, null for the owner to be selected.