android-components / mozilla.components.browser.tabstray / TabViewHolder

# TabViewHolder

`class TabViewHolder : ViewHolder, Observer` (source)

A RecyclerView ViewHolder implementation for "tab" items.

### Constructors

<init> | `TabViewHolder(itemView: View)` A RecyclerView ViewHolder implementation for "tab" items.

### Functions

bind | `fun bind(session: Session, isSelected: Boolean, observable: Observable<Observer>): Unit` Displays the data of the given session and notifies the given observable about events.
onUrlChanged | `fun onUrlChanged(session: Session, url: String): Unit`
unbind | `fun unbind(): Unit` The attached view no longer needs to display any data.

### Inherited Functions

onAppPermissionRequested | `open fun onAppPermissionRequested(session: Session, permissionRequest: PermissionRequest): Boolean`
onContentPermissionRequested | `open fun onContentPermissionRequested(session: Session, permissionRequest: PermissionRequest): Boolean`
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`