Package-level declarations

Types

Link copied to clipboard
interface Disposable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object FfiConverterTypeSuggestStore : FfiConverter<SuggestStore, <Error class: unknown class>>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class ForeignBytes
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
object NoPointer

Used to instantiate an interface without an actual pointer, for fakes in tests, mostly.

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

The equivalent of the *mut RustBuffer type. Required for callbacks taking in an out pointer.

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.

Link copied to clipboard
interface UniffiCleaner

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.

Link copied to clipboard
inline fun <T : Disposable?, R> T.use(block: (T) -> R): R