| class info |
| com.huawei.hms.mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory |
| Creates a text translation configurator instance. |
| Constructor name |
| Factory() Creates a factory instance of the text translation configurator. |
| Return type | Method name |
| mlsdk.translate.cloud.MLRemoteTranslateSetting | create() |
| mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory | setSourceLangCode(String sourceLangCode) |
| mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory | setSourceLangCode(String sourceLangCode) |
| Method |
| public Factory() |
| Creates a factory instance of the text translation configurator. |
| Method |
| public mlsdk.translate.cloud.MLRemoteTranslateSetting create() |
| Creates a text translator instance. |
Return
| Type | desc |
| mlsdk.translate.cloud.MLRemoteTranslateSetting | Returns a text translator instance. |
| Method |
| public mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory setSourceLangCode(String sourceLangCode) |
| Sets the source language code (ISO 639-1 standard code). |
Parameters
| Parameter name | Parameter desc |
| sourceLangCode | Source language code (ISO 639-1 standard code). If this parameter is not set, the system automatically recognizes the language of the text to be translated. |
Return
| Type | desc |
| mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory | Returns a text translation configurator instance. |
| Method |
| public mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory setTargetLangCode(String targetLangCode) |
| Sets the target language code (ISO 639-1 standard code). |
Parameters
| Parameter name | Parameter desc |
| targetLangCode | Target language code (ISO 639-1 standard code). |
Return
| Type | desc |
| mlsdk.translate.cloud.MLRemoteTranslateSetting.Factory | Returns a text translation configurator instance. |