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

Name Summary
<init> LocaleSearchLocalizationProvider()
LocalizationProvider implementation that only provides the language and country from the system’s default languageTag.

Functions

Name Summary
determineRegion suspend fun determineRegion(): SearchLocalization

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.