Customizing the Menu Displayed upon a Touch on the Title Bar in a Meeting
You can customize the menu (Figure 2) displayed when you touch the title bar (Figure 1) in a meeting.
Application Scenarios
The content displayed on the meeting details panel needs to be adjusted, for example, hiding the password or adding a custom item.
Precautions
1. sdkConfig takes effect only when this configuration is passed during SDK initialization.
Customizing the Menu Displayed upon a Touch on the Title Bar in a Meeting
Sample Code
sdkConfig.setConfTitlePopwindowHandle(new CustomConfTitleBarPopwindowHandle());
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// Customize the menu displayed when the title bar in a meeting is touched. IMenuAction defines some view functions, which can be directly converted into ViewGroup to add, delete, modify, and query subviews. public class CustomConfTitleBarPopwindowHandle implements IConfTitleBarPopwindowHandle { @Override public void buildConfTitleBarPopwindow(IMenuAction iMenuAction) { if (!HWMBizSdk.getBizOpenApi().isSelfChairMan()) { // View displayed without the password if the user is the host. View mPwdView = iMenuAction.findView(BuildInMenuType.CONF_TITLE_PWD_LAYOUT); if (mPwdView != null) { mPwdView.setVisibility(View.GONE); } } else { // View displayed with the password if the user is the host. View mPwdView = iMenuAction.findView(BuildInMenuType.CONF_TITLE_PWD_LAYOUT); if (mPwdView != null) { mPwdView.setVisibility(View.VISIBLE); } } } } |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot