类 NEMenuItemListBuilder
java.lang.Object
com.netease.yunxin.kit.meeting.sdk.menu.NEMenuItemListBuilder
Toolbar与更多菜单列表构建帮助类
-
构造器概要
-
方法概要
修饰符和类型方法说明addMenu
(int index, NEMeetingMenuItem item) 在 index 位置处插入菜单 itemaddMenu
(NEMeetingMenuItem item) 在列表末尾增加菜单 itembuild()
getMenu
(int index) getMenuById
(int menuId) static NEMenuItemListBuilder
removeMenuById
(int menuId) 删除列表中 id 为 menuId 的菜单removeMenuByIndex
(int index) 删除列表中 index 位置的菜单replaceMenuById
(int menuId, NEMeetingMenuItem item) 用 item 替换列表中 id 为 menuId 的菜单setMenu
(int index, NEMeetingMenuItem item) 设置 index 位置的菜单为 itemstatic NEMenuItemListBuilder
-
构造器详细资料
-
NEMenuItemListBuilder
-
-
方法详细资料
-
toolbarMenuBuilder
- 返回:
- Toolbar菜单构建帮助类
-
moreMenuBuilder
- 返回:
- 更多菜单构建帮助类
-
removeMenuByIndex
删除列表中 index 位置的菜单- 参数:
index
- 位置- 返回:
- this
-
removeMenuById
删除列表中 id 为 menuId 的菜单- 参数:
menuId
- 菜单ID- 返回:
- this
-
getMenu
- 参数:
index
- 位置- 返回:
- 返回index所在位置的MenuItem
-
getMenuById
- 参数:
menuId
- 菜单ID- 返回:
- 返回指定id的MenuItem
-
build
- 返回:
- 构建完成的最终菜单列表
-