class ToolbarPresenter : Observer, Observer
(source)
Presenter implementation for a toolbar implementation in order to update the toolbar whenever the state of the selected session changes.
ToolbarPresenter(toolbar: Toolbar, sessionManager: SessionManager, sessionId: String? = null)
Presenter implementation for a toolbar implementation in order to update the toolbar whenever the state of the selected session changes. |
fun onProgress(session: Session, progress: Int): Unit |
|
fun onSearch(session: Session, searchTerms: String): Unit |
|
fun onSessionSelected(session: Session): Unit
A new session has been selected: Update toolbar to display data of new session. |
|
fun onUrlChanged(session: Session, url: String): Unit |
|
fun start(): Unit
Start presenter: Display data in toolbar. |
|
fun stop(): Unit
Stop presenter from updating the 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 onCustomTabConfigChanged(session: Session, customTabConfig: CustomTabConfig?): Unit |
|
open fun onDesktopModeChanged(session: Session, enabled: Boolean): Unit |
|
open fun onDownload(session: Session, download: Download): Boolean |
|
open fun onFindResult(session: Session, result: FindResult): Unit |
|
open fun onFullScreenChanged(session: Session, enabled: Boolean): Unit |
|
open fun onLoadingStateChanged(session: Session, loading: Boolean): Unit |
|
open fun onLongPress(session: Session, hitResult: HitResult): Boolean |
|
open fun onNavigationStateChanged(: Session, : Boolean, : Boolean): Unit |
|
open fun onSecurityChanged(session: Session, securityInfo: SecurityInfo): Unit |
|
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 onThumbnailChanged(session: Session, bitmap: Bitmap?): Unit |
|
open fun onTitleChanged(session: Session, title: String): Unit |
|
open fun onTrackerBlocked(session: Session, blocked: String, all: List<String>): Unit |
|
open fun onTrackerBlockingEnabledChanged(session: Session, blockingEnabled: Boolean): Unit |