GuestProtocolAdapter
Connects the guest (composition) of a Redwood UI to the host of that UI.
Guest widgets use this to send view tree updates to the host, and to receive user events from the host.
This interface is for generated code use only.
Properties
Link copied to clipboard
The root of the widget tree onto which widgetSystem-produced widgets can be added. Changes to this instance are recorded as changes to Id.Root and ChildrenTag.Root.
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun appendPropertyChange(id: Id, widgetTag: WidgetTag, propertyTag: PropertyTag, value: Boolean)
abstract fun <T> appendPropertyChange(id: Id, widgetTag: WidgetTag, propertyTag: PropertyTag, serializer: KSerializer<T>, value: T)
abstract fun appendPropertyChange(id: Id, widgetTag: WidgetTag, propertyTag: PropertyTag, value: UInt)
There's a bug in kotlinx.serialization where decodeFromDynamic() is broken for UInt values larger than MAX_INT. For example, 4294967295 is incorrectly encoded as -1. We work around that here by special casing that type.
Link copied to clipboard
Link copied to clipboard
Write changes to the underlying ChangesSink. This function may no-op if there are no changes to send.
Link copied to clipboard