Define How To Render Each Element
Use the ChatFeedViewBuilder
protocol to define how to render each chat feed element.
none
renders an empty view.existing
renders our default view.replace
renders the view you provide. For the elements that you set toreplace
, you must provide a view to render instead of the default view.
The preceding example shows how you can use logic on the participantChanged
event to set different render modes. It also shows how you can replace the text messages with a green bar and the list pickers with a yellow bar. Similarly, you can define your unique views or our default views for each chat element.