Class AppLocale
java.lang.Object
io.appium.java_client.remote.options.BaseMapOptionData<AppLocale>
io.appium.java_client.android.options.localization.AppLocale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the country identifier.Get the language identifier.Get the language variant.withCountry(String country) Allows to set a country identifier.withLanguage(String lang) Language identifier.withVariant(String variant) Allows to set an optional language variant value.Methods inherited from class io.appium.java_client.remote.options.BaseMapOptionData
assignOptionValue, getOptionValue, toJson, toMap, toString
-
Constructor Details
-
AppLocale
public AppLocale() -
AppLocale
-
-
Method Details
-
withLanguage
Language identifier. See https://github.com/libyal/libfwnt/wiki/Language-Code-identifiers#language-identifiers for the list of available values.- Parameters:
lang- Language identifier, for example "zh".- Returns:
- self instance for chaining.
-
getLanguage
Get the language identifier.- Returns:
- Language identifier.
-
withCountry
Allows to set a country identifier.- Parameters:
country- Country identifier, for example "CN".- Returns:
- self instance for chaining.
-
getCountry
Get the country identifier.- Returns:
- Country identifier.
-
withVariant
Allows to set an optional language variant value.- Parameters:
variant- Language variant, for example "Hans".- Returns:
- self instance for chaining.
-
getVariant
Get the language variant.- Returns:
- Language variant.
-