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

Customizing the Text for a Specific Scenario

setCustomUITextWithCustomSceneTextInfoList

API Description

This API is used to customize the text for a specific scenario.

Precautions

None

Method Definition

1
- (void)setCustomUITextWithCustomSceneTextInfoList:(HWMUISDKCustomSceneTextInfoListModel *)customSceneTextInfoList;

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

customSceneTextInfoList

Yes

HWMUISDKCustomSceneTextInfoListModel

Text model.

Table 2 HWMUISDKCustomSceneTextInfoListModel description

Parameter

Type

Description

customSceneTextInfoList

NSArray <HWMUISDKCustomSceneTextInfoModel *> *

Custom text details.

Table 3 HWMUISDKCustomSceneTextInfoModel description

Parameter

Type

Description

scene

HWMUISDKUICustomTextScene

Scenario requiring text customization.

sceneTextList

NSArray <HWMUISDKUICustomTextInfoModel *> *

List of custom text strings.

Table 4 HWMUISDKUICustomTextInfoModel description

Parameter

Type

Description

languageType

HWMUISDKLanguage

Language type.

languageCode

NSString *

Custom language code.

customText

NSString *

Custom text.

Table 5 Enumerated values of HWMUISDKUICustomTextScene

Enumerated Value

Description

HWMUISDKCloudRecordFinishedAlertScene

Cloud recording end notification.

HWMUISDKCloudRecordFinishedAlertImScene

Notification in the dialog box displayed when cloud recording ends in an ongoing meeting.

Table 6 Enumerated values of HWMUISDKLanguage

Enumerated Value

Description

HWMUISDKLanguageZhCn

Chinese.

HWMUISDKLanguageEnGb

English.

HWMUISDKLanguageCustomized

Custom language.

Return Values

None

Sample Code
1
2
3
4
5
6
7
8
/// Customize the text for a scenario.
- (void)customLanguageInfos {
    HWMUISDKCustomSceneTextInfoListModel *listModel = [[HWMUISDKCustomSceneTextInfoListModel alloc] init];
    HWMUISDKCustomSceneTextInfoModel *sceneModel = [[HWMUISDKCustomSceneTextInfoModel alloc] init];
    sceneModel.scene = _currentScene;
    listModel.customSceneTextInfoList = @[sceneModel];
    [[HWMSdk getOpenApi] setCustomUITextWithCustomSceneTextInfoList:listModel];
}