SimpleViewBinder

open class SimpleViewBinder<V : View> : ViewBinder<V>

Empty implementation of com.facebook.litho.viewcompat.ViewBinder. This can be useful if we need to override only one method.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override 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
open override fun prepare()

Prepares the binder to be bound to a view.

Link copied to clipboard
open override fun unbind(view: V)

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