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

<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

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