Customizing the Text for a Specific Scenario
This API is used to customize the text for a specific scenario.
Precautions
None
Method Definition
String getString(HWMUiCustomTextScene scene);
Parameter Description
Enumerated Value |
Description |
---|---|
CLOUD_RECORD_FINISHED_ALERT_TEXT_SCENE |
Text in the dialog box displayed when cloud recording ends due to meeting closure. |
CLOUD_RECORD_FINISHED_ALERT_TEXT_IN_MEETING_SCENE |
Text in the dialog box displayed when cloud recording ends in an ongoing meeting. |
LEAVE_OR_END_CONF_POPUP_WINDOW_TEXT_SCENE |
Title of the dialog box for leaving or ending a meeting. |
CLOUD_RECORD_MENU_TITLE_TEXT_SCENE |
Cloud recording title in the recording pop-up menu. |
MAIN_WINDOW_CLOUD_RECORD_DES_TEXT_SCENE |
Cloud recording description in the main window. |
public class CustomIUiCustomTextHandler implements IUiCustomTextHandler { @Override public String getString(HWMUiCustomTextScene scene) { Map<HWMUiCustomTextScene, String> customTextMap = new HashMap<>(); customTextMap.put(HWMUiCustomTextScene.CLOUD_RECORD_FINISHED_ALERT_TEXT_SCENE, DemoUtil.getResContext().getString(R.string.conf_cloud_record_finished_alert_text)); customTextMap.put(HWMUiCustomTextScene.CLOUD_RECORD_FINISHED_ALERT_TEXT_IN_MEETING_SCENE, DemoUtil.getResContext().getString(R.string.conf_cloud_record_finished_alert_text_in_meeting)); customTextMap.put(HWMUiCustomTextScene.LEAVE_OR_END_CONF_POPUP_WINDOW_TEXT_SCENE, DemoUtil.getResContext().getString(R.string.leave_or_end_conf_popup_window_text_scene)); customTextMap.put(HWMUiCustomTextScene.CLOUD_RECORD_MENU_TITLE_TEXT_SCENE, DemoUtil.getResContext().getString(R.string.cloud_record_menu_title_text_scene)); customTextMap.put(HWMUiCustomTextScene.MAIN_WINDOW_CLOUD_RECORD_DES_TEXT_SCENE, DemoUtil.getResContext().getString(R.string.main_window_cloud_record_des_text_scene)); String value = customTextMap.get(scene); return value != null ? value : ""; } }
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