android-components / mozilla.components.browser.search.provider.localization / LocaleSearchLocalizationProvider

LocaleSearchLocalizationProvider

class LocaleSearchLocalizationProvider : SearchLocalizationProvider (source)

LocalizationProvider implementation that only provides the language and country from the system's default languageTag.

Constructors

<init>

LocaleSearchLocalizationProvider()

LocalizationProvider implementation that only provides the language and country from the system's default languageTag.

Properties

country

val country: String

ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.

language

val language: String

ISO 639 alpha-2 or alpha-3 language code, or registered language subtags up to 8 alpha letters (for future enhancements).

region

val region: String?

Optional actual location (region only) of the user/device. ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.

Inherited Properties

languageTag

val languageTag: String

Returns a language tag of the form -.