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

SearchLocalizationProvider

abstract class SearchLocalizationProvider (source)

Class providing language, country and optionally region (actual location) of the user/device to customize the search experience.

Constructors

<init>

SearchLocalizationProvider()

Class providing language, country and optionally region (actual location) of the user/device to customize the search experience.

Properties

country

abstract val country: String

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

language

abstract val language: String

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

languageTag

val languageTag: String

Returns a language tag of the form -.

region

abstract 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.

Inheritors

LocaleSearchLocalizationProvider

class LocaleSearchLocalizationProvider : SearchLocalizationProvider

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