on Chat Element Received
Called when a new chat element is received from the chat engine.
This method is invoked for every element delivered during the conversation, including messages loaded from history when reconnecting to an existing session.
The websocket connection can close when the application enters background, preventing elements from being received until reconnection.
Parameters
chat Element
The received ChatElement instance. Inspect its concrete type (for example, com.genesys.cloud.ui.structure.elements.IncomingChatElement, com.genesys.cloud.ui.structure.elements.IncomingAttachmentElement, com.genesys.cloud.ui.structure.elements.CarouselChatElement) for type-specific data.