Help Center/ Meeting/ Client SDK Reference/ Android SDK/ API Reference/ UI Customization/ Customizing the Text for a Specific Scenario
Updated on 2024-12-27 GMT+08:00

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

Table 1 Enumerated values of HWMUiCustomTextScene

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.

Sample Code
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 : "";
    }
}