Data

@SerialName(value = "data")
class Data(val name: String, val data: JsonElement, val id: String? = null, val transient: Boolean = false) : StreamEvent(source)

Custom UI data part. Encodes to the v6 UI-message chunk shape { type: "data-$name", id?, data, transient? }.

Since

0.3.0-beta01

Constructors

Link copied to clipboard
constructor(name: String, data: JsonElement, id: String? = null, transient: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String?
Link copied to clipboard
Link copied to clipboard

Name suffix for the UI chunk type, without the data- prefix.

Link copied to clipboard