android-components / mozilla.components.concept.tabstray / TabsTray / Observer

# Observer

`interface Observer` (source)

Interface to be implemented by classes that want to observe a tabs tray.

### Functions

onTabClosed | `abstract fun onTabClosed(session: Session): Unit` A tab has been closed.
onTabSelected | `abstract fun onTabSelected(session: Session): Unit` A new tab has been selected.

### Inheritors

TabsTrayInteractor | `class TabsTrayInteractor : Observer` Interactor for a tabs tray component. Subscribes to the tabs tray and invokes use cases to update the session manager.