features/characters_favorites / com.vmadalin.dynamicfeatures.charactersfavorites.ui.favorite.adapter / CharactersFavoriteAdapter

CharactersFavoriteAdapter

class CharactersFavoriteAdapter : BaseListAdapter<CharacterFavorite>

Class for presenting characters favorite List data in a RecyclerView, including computing diffs between Lists on a background thread.

See Also

BaseListAdapter

Constructors

<init>

Class for presenting characters favorite List data in a RecyclerView, including computing diffs between Lists on a background thread.

CharactersFavoriteAdapter()

Functions

onBindViewHolder

Called by RecyclerView to display the data at the specified position.

fun onBindViewHolder(holder: ViewHolder, position: Int): Unit

onCreateViewHolder

Called when RecyclerView needs a new RecyclerView.ViewHolder of the given type to represent an item.

fun onCreateViewHolder(parent: ViewGroup, inflater: LayoutInflater, viewType: Int): CharacterFavoriteViewHolder