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


fun addClipboardProvider(context: <ERROR CLASS>, loadUrlUseCase: LoadUrlUseCase, engine: Engine? = null): AwesomeBarFeature (source)

Add a AwesomeBar.SuggestionProvider for clipboard items to the AwesomeBar.


context - the activity or application context, required to look up the clipboard manager.

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.