epoxy-adapter / com.airbnb.epoxy / EpoxyAdapter / showModel

showModel

protected open fun showModel(model: EpoxyModel<*>!, show: Boolean): Unit

Sets the visibility of the given model, and notifies that the item changed if the new visibility is different from the previous.

Parameters

model - EpoxyModel<*>!: The model to show. It should already be added to the #models list.

show - Boolean: True to show the model, false to hide it.

protected open fun showModel(model: EpoxyModel<*>!): Unit

Shows the given model, and notifies that the item changed if the item wasn't already shown.

Parameters

model - EpoxyModel<*>!: The model to show. It should already be added to the #models list.