Language configuration
To restrict the language of the Metamap SDK use fixedLanguage
parameter. The following languages are being supported
Language | Value |
---|---|
German | MetamapLanguage.GERMAN |
English | MetamapLanguage.ENGLISH |
Spanish | MetamapLanguage.SPANISH |
French | MetamapLanguage.FRENCH |
Italian | MetamapLanguage.ITALIAN |
Portuguese | MetamapLanguage.PORTUGUESE |
Russian | MetamapLanguage.RUSSIAN |
Turkish | MetamapLanguage.TURKISH |
Polish | MetamapLanguage.POLISH |
Thai | MetamapLanguage.THAI |
val uiConfig = UIConfig.Builder()
.fixedLanguage(MetamapLanguage.SPANISH)
.build()
val metadata = Metadata.Builder()
.uiConfig(uiConfig)
.build()
val button = findViewById<MetamapButton>(R.id.metamapButton)
button.setParams(this, "YOUR_CLIENT_ID", "YOUR_FLOW_ID", metadata)
UIConfig uiConfig = new UIConfig.Builder()
.fixedLanguage(MetamapLanguage.SPANISH)
.build();
Metadata metadata = new Metadata.Builder()
.uiConfig(uiConfig)
.build();
MetamapButton button = findViewById(R.id.metamapButton);
button.setParams(this, "CLIENT_ID", "YFLOW_ID", metadata);
Updated 11 months ago