ItemVisualizer

interface ItemVisualizer<T, in C>(source)

Provides a mapping between an item and a View to represent it.

Parameters

T

item type

C

context about the item

Inheritors

Functions

Link copied to clipboard
fun <T, R, C> ItemVisualizer<R, C>.after(mapper: (T) -> R): ItemVisualizer<T, C>

Creates a visualizer for T using a visualizer for R by mapping T -> R.

Link copied to clipboard
abstract operator fun invoke(item: T, previous: View? = null, context: C): View

Called whenever an item needs to be translated to a View.

Link copied to clipboard
operator fun <T> ItemVisualizer<T, Any>.invoke(item: T, previous: View? = null): View