epoxy-adapter / com.airbnb.epoxy / EpoxyRecyclerView / setController

setController

fun setController(controller: EpoxyController): Unit

Set an EpoxyController to populate this RecyclerView. This does not make the controller build its models, that must be done separately via requestModelBuild.

Use this if you don't want requestModelBuild called automatically. Common cases are if you are using TypedEpoxyController (in which case you must call setData on the controller), or if you have not otherwise populated your controller's data yet.

Otherwise if you want models built automatically for you use setControllerAndBuildModels

The controller can be cleared with clear