class EngineViewPresenter : Observer
(source)
Presenter implementation for EngineView.
EngineViewPresenter(sessionManager: SessionManager, engineView: EngineView, sessionId: String? = null)
Presenter implementation for EngineView. |
fun onSessionSelected(session: Session): Unit
A new session has been selected: Render it on an EngineView. |
|
fun start(): Unit
Start presenter and display data in view. |
|
fun stop(): Unit
Stop presenter from updating view. |
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. |
|
open fun onSessionAdded(session: Session): Unit
The given session has been added. |
|
open fun onSessionRemoved(session: Session): Unit
The given session has been removed. |
|
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. |