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>
  • Constructor Details

    • AppLocale

      public AppLocale()
    • AppLocale

      public AppLocale(Map<String,Object> options)
  • Method Details

    • withLanguage

      public AppLocale withLanguage(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 Optional<String> getLanguage()
      Get the language identifier.
      Returns:
      Language identifier.
    • withCountry

      public AppLocale withCountry(String country)
      Allows to set a country identifier.
      Parameters:
      country - Country identifier, for example "CN".
      Returns:
      self instance for chaining.
    • getCountry

      public Optional<String> getCountry()
      Get the country identifier.
      Returns:
      Country identifier.
    • withVariant

      public AppLocale withVariant(String variant)
      Allows to set an optional language variant value.
      Parameters:
      variant - Language variant, for example "Hans".
      Returns:
      self instance for chaining.
    • getVariant

      public Optional<String> getVariant()
      Get the language variant.
      Returns:
      Language variant.