Class AppLocale
- java.lang.Object
-
- io.appium.java_client.remote.options.BaseMapOptionData<AppLocale>
-
- io.appium.java_client.android.options.localization.AppLocale
-
public class AppLocale extends BaseMapOptionData<AppLocale>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getCountry()
Get the country identifier.java.util.Optional<java.lang.String>
getLanguage()
Get the language identifier.java.util.Optional<java.lang.String>
getVariant()
Get the language variant.AppLocale
withCountry(java.lang.String country)
Allows to set a country identifier.AppLocale
withLanguage(java.lang.String lang)
Language identifier.AppLocale
withVariant(java.lang.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
-
-
-
-
Method Detail
-
withLanguage
public AppLocale withLanguage(java.lang.String lang)
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
public java.util.Optional<java.lang.String> getLanguage()
Get the language identifier.- Returns:
- Language identifier.
-
withCountry
public AppLocale withCountry(java.lang.String country)
Allows to set a country identifier.- Parameters:
country
- Country identifier, for example "CN".- Returns:
- self instance for chaining.
-
getCountry
public java.util.Optional<java.lang.String> getCountry()
Get the country identifier.- Returns:
- Country identifier.
-
withVariant
public AppLocale withVariant(java.lang.String variant)
Allows to set an optional language variant value.- Parameters:
variant
- Language variant, for example "Hans".- Returns:
- self instance for chaining.
-
getVariant
public java.util.Optional<java.lang.String> getVariant()
Get the language variant.- Returns:
- Language variant.
-
-