android-components / mozilla.components.service.location.search / RegionSearchLocalizationProvider

RegionSearchLocalizationProvider

class RegionSearchLocalizationProvider : SearchLocalizationProvider (source)

SearchLocalizationProvider implementation that uses a MozillaLocationService instance to do a region lookup via GeoIP.

Since this provider may do a network request to determine the region, it is important to only use the “async” suspension methods of SearchEngineManager from the main thread when using this provider.

Constructors

Name Summary
<init> RegionSearchLocalizationProvider(service: MozillaLocationService)
SearchLocalizationProvider implementation that uses a MozillaLocationService instance to do a region lookup via GeoIP.

Functions

Name Summary
determineRegion suspend fun determineRegion(): SearchLocalization