android-components / mozilla.components.feature.tabs.tabstray / TabsTrayInteractor

TabsTrayInteractor

class TabsTrayInteractor : Observer (source)

Interactor for a tabs tray component. Subscribes to the tabs tray and invokes use cases to update the session manager.

Constructors

Name Summary
<init> TabsTrayInteractor(tabsTray: TabsTray, selectTabUseCase: SelectTabUseCase, removeTabUseCase: RemoveTabUseCase, closeTabsTray: () -> Unit)
Interactor for a tabs tray component. Subscribes to the tabs tray and invokes use cases to update the session manager.

Functions

Name Summary
onTabClosed fun onTabClosed(session: Session): Unit
A tab has been closed.
onTabSelected fun onTabSelected(session: Session): Unit
A new tab has been selected.
start fun start(): Unit
stop fun stop(): Unit

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.