ViewBinder

interface ViewBinder<V : View>

Binds data to a view.

Parameters

V

the type of View.

Inheritors

Functions

Link copied to clipboard
abstract fun bind(view: V)

Binds data to the given view so it can be rendered on screen. This will always be called after prepare so that you can use stored output from prepare here if needed.

Link copied to clipboard
abstract fun prepare()

Prepares the binder to be bound to a view.

Link copied to clipboard
abstract fun unbind(view: V)

Cleans up a view that goes off screen after it has already been bound.