android-components / mozilla.components.feature.awesomebar / AwesomeBarFeature / addHistoryProvider

addHistoryProvider

fun addHistoryProvider(historyStorage: HistoryStorage, loadUrlUseCase: LoadUrlUseCase, engine: Engine? = null): AwesomeBarFeature (source)

Add a AwesomeBar.SuggestionProvider for browsing history to the AwesomeBar.

Parameters

historyStorage - and instance of the BookmarksStorage used to query matching bookmarks.

loadUrlUseCase - the use case invoked to load the url when the user clicks on the suggestion.

engine - optional Engine instance to call Engine.speculativeConnect for the highest scored suggestion URL.