Slide 116
Slide 116 text
UI Engine - Presenter example
@ContributesRenderer
class ItineraryListRenderer :
ViewBindingRenderer() {
override fun inflateViewBinding(
activity: Activity,
parent: ViewGroup,
layoutInflater: LayoutInflater,
initialModel: ItineraryListPresenter.Model
): FragmentItineraryListRedesignBinding {
val itineraryListLayoutBinding = FragmentItineraryListRedesignBinding.inflate(layoutInflater, parent, false)
...
return itineraryListLayoutBinding
}
override fun renderModel(model: ItineraryListPresenter.Model) {
...
}
}