android-components / mozilla.components.feature.session / EngineViewPresenter

# EngineViewPresenter

`class EngineViewPresenter : Observer` (source)

Presenter implementation for EngineView.

### Constructors

<init> | `EngineViewPresenter(sessionManager: SessionManager, engineView: EngineView, sessionId: String? = null)` Presenter implementation for EngineView.

### Functions

onSessionSelected | `fun onSessionSelected(session: Session): Unit` A new session has been selected: Render it on an EngineView.
start | `fun start(): Unit` Start presenter and display data in view.
stop | `fun stop(): Unit` Stop presenter from updating view.

### Inherited Functions

onAllSessionsRemoved | `open fun onAllSessionsRemoved(): Unit` All sessions have been removed. Note that this will callback will be invoked whenever removeAll() or removeSessions have been called on the SessionManager. This callback will NOT be invoked when just the last session has been removed by calling remove() on the SessionManager.
onSessionAdded | `open fun onSessionAdded(session: Session): Unit` The given session has been added.
onSessionRemoved | `open fun onSessionRemoved(session: Session): Unit` The given session has been removed.
onSessionsRestored | `open fun onSessionsRestored(): Unit` Sessions have been restored via a snapshot. This callback is invoked at the end of the call to read, after every session in the snapshot was added, and appropriate session was selected.