receive

open fun receive(document: AIUIDocument, messageId: String)

Takes a reply's document as it arrives or changes, oldest reply first, whether or not the reply is on screen, so a format whose later replies change an earlier one's UI can follow them all. It comes while the conversation composes, before any reply's content is asked for: keep what is on screen in snapshot state so it follows. Nothing by default.

Parameters

document

The reply's document.

messageId

The reply's id.