Language configuration

To restrict the language of the Metamap SDK use fixedLanguage parameter. The following languages are being supported

LanguageValue
GermanMetamapLanguage.GERMAN
EnglishMetamapLanguage.ENGLISH
SpanishMetamapLanguage.SPANISH
FrenchMetamapLanguage.FRENCH
ItalianMetamapLanguage.ITALIAN
PortugueseMetamapLanguage.PORTUGUESE
RussianMetamapLanguage.RUSSIAN
TurkishMetamapLanguage.TURKISH
PolishMetamapLanguage.POLISH
ThaiMetamapLanguage.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);