android-components / mozilla.components.feature.toolbar / ToolbarInteractor

ToolbarInteractor

class ToolbarInteractor (source)

Connects a toolbar instance to the browser engine via use cases

Constructors

Name Summary
<init> ToolbarInteractor(toolbar: Toolbar, loadUrlUseCase: LoadUrlUseCase, searchUseCase: SearchUseCase? = null)
Connects a toolbar instance to the browser engine via use cases

Functions

Name Summary
start fun start(): Unit
Starts this interactor. Makes sure this interactor is listening to relevant UI changes and triggers the corresponding use-cases in response.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.