UiEvent

class UiEvent(val id: Id, val tag: EventTag, val args: Array<Any?>?, val serializationStrategies: Array<SerializationStrategy<Any?>>?)

A version of Event whose arguments have not yet been serialized to JSON and is thus cheap to create on the UI thread.

Constructors

Link copied to clipboard
constructor(id: Id, tag: EventTag, args: Array<Any?>?, serializationStrategies: Array<SerializationStrategy<Any?>>?)

Properties

Link copied to clipboard
val args: Array<Any?>?
Link copied to clipboard
val id: Id
Link copied to clipboard
val serializationStrategies: Array<SerializationStrategy<Any?>>?
Link copied to clipboard

Functions

Link copied to clipboard
fun toProtocol(json: Json): Event

Serialize args into a JSON model using serializationStrategies into an Event.