android-components / mozilla.components.browser.session / Session / Observer

# Observer

`interface Observer` (source)

Interface to be implemented by classes that want to observe a session.

### Functions

onCustomTabConfigChanged | `open fun onCustomTabConfigChanged(session: Session, customTabConfig: CustomTabConfig?): Unit`
onDesktopModeChanged | `open fun onDesktopModeChanged(session: Session, enabled: Boolean): Unit`
onDownload | `open fun onDownload(session: Session, download: Download): Boolean`
onFindResult | `open fun onFindResult(session: Session, result: FindResult): Unit`
onFullScreenChanged | `open fun onFullScreenChanged(session: Session, enabled: Boolean): Unit`
onLoadingStateChanged | `open fun onLoadingStateChanged(session: Session, loading: Boolean): Unit`
onLongPress | `open fun onLongPress(session: Session, hitResult: HitResult): Boolean`
onNavigationStateChanged | `open fun onNavigationStateChanged(session: Session, canGoBack: Boolean, canGoForward: Boolean): Unit`
onProgress | `open fun onProgress(session: Session, progress: Int): Unit`
onSearch | `open fun onSearch(session: Session, searchTerms: String): Unit`
onSecurityChanged | `open fun onSecurityChanged(session: Session, securityInfo: SecurityInfo): Unit`
onThumbnailChanged | `open fun onThumbnailChanged(session: Session, bitmap: Bitmap?): Unit`
onTitleChanged | `open fun onTitleChanged(session: Session, title: String): Unit`
onTrackerBlocked | `open fun onTrackerBlocked(session: Session, blocked: String, all: List<String>): Unit`
onTrackerBlockingEnabledChanged | `open fun onTrackerBlockingEnabledChanged(session: Session, blockingEnabled: Boolean): Unit`
onUrlChanged | `open fun onUrlChanged(session: Session, url: String): Unit`

### Inheritors

TabViewHolder | `class TabViewHolder : ViewHolder, Observer` A RecyclerView ViewHolder implementation for "tab" items.
ToolbarPresenter | `class ToolbarPresenter : Observer, Observer` Presenter implementation for a toolbar implementation in order to update the toolbar whenever the state of the selected session changes.