android-components / mozilla.components.browser.awesomebar.layout / SuggestionViewHolder

SuggestionViewHolder

abstract class SuggestionViewHolder (source)

A view holder implementation for displaying an AwesomeBar.Suggestion.

Constructors

Name Summary
<init> SuggestionViewHolder(view: <ERROR CLASS>)
A view holder implementation for displaying an AwesomeBar.Suggestion.

Properties

Name Summary
view val view: <ERROR CLASS>

Functions

Name Summary
bind abstract fun bind(suggestion: Suggestion, selectionListener: () -> Unit): Unit
Binds the views in the holder to the AwesomeBar.Suggestion.
recycle open fun recycle(): Unit
Notifies this SuggestionViewHolder that it has been recycled. If this holder (or its views) keep references to large or expensive data such as large bitmaps, this may be a good place to release those resources.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.