Package-level declarations

Types

Link copied to clipboard
interface Disposable
Link copied to clipboard
data class Geoname(var geonameId: Long, var name: String, var latitude: Double, var longitude: Double, var countryCode: String, var admin1Code: String, var population: ULong)

A single geographic place.

Link copied to clipboard
data class GeonameMatch(var geoname: Geoname, var matchType: GeonameMatchType, var prefix: Boolean)

A fetched geoname with info on how it was matched.

Link copied to clipboard
Link copied to clipboard

The type of a geoname.

Link copied to clipboard
Link copied to clipboard

What should be interrupted when SuggestStore::interrupt is called?

Link copied to clipboard
data class LabeledTimingSample(var label: String, var value: ULong)

Single sample for a Glean labeled_timing_distribution

Link copied to clipboard
data class QueryWithMetricsResult(var suggestions: List<Suggestion>, var queryTimes: List<LabeledTimingSample>)
Link copied to clipboard

The error type for all Suggest component operations. These errors are exposed to your application, which should handle them as needed.

Link copied to clipboard
data class SuggestGlobalConfig(var showLessFrequentlyCap: Int)

Global Suggest configuration data.

Link copied to clipboard
data class SuggestIngestionConstraints(var providers: List<SuggestionProvider>? = null, var providerConstraints: SuggestionProviderConstraints? = null, var emptyOnly: Boolean = false)

Constraints limit which suggestions to ingest from Remote Settings.

Link copied to clipboard
data class SuggestIngestionMetrics(var ingestionTimes: List<LabeledTimingSample>, var downloadTimes: List<LabeledTimingSample>)

Ingestion metrics

Link copied to clipboard
sealed class Suggestion

A suggestion from the database to show in the address bar.

Link copied to clipboard

A provider is a source of search suggestions.

Link copied to clipboard
data class SuggestionProviderConstraints(var exposureSuggestionTypes: List<String>? = null)

Some providers manage multiple suggestion subtypes. Queries, ingests, and other operations on those providers must be constrained to a desired subtype.

Link copied to clipboard
data class SuggestionQuery(var keyword: String, var providers: List<SuggestionProvider>, var providerConstraints: SuggestionProviderConstraints? = null, var limit: Int? = null)

A query for suggestions to show in the address bar.

Link copied to clipboard

Per-provider configuration data.

Link copied to clipboard

The store is the entry point to the Suggest component. It incrementally downloads suggestions from the Remote Settings service, stores them in a local database, and returns them in response to user queries.

Link copied to clipboard
Link copied to clipboard

The store is the entry point to the Suggest component. It incrementally downloads suggestions from the Remote Settings service, stores them in a local database, and returns them in response to user queries.

Functions

Link copied to clipboard
fun rawSuggestionUrlMatches(rawUrl: String, cookedUrl: String): Boolean

Determines whether a "raw" sponsored suggestion URL is equivalent to a "cooked" URL. The two URLs are equivalent if they are identical except for their replaced template parameters, which can be different.