Package-level declarations

Types

Link copied to clipboard
@ObjCName(name = "HostProtocolAdapter", exact = true)
class HostProtocolAdapter<W : Any>(guestVersion: RedwoodVersion, container: Widget.Children<W>, factory: ProtocolFactory<W>, eventSink: UiEventSink, leakDetector: LeakDetector) : ChangesSink

Runs the host side of the protocol.

Link copied to clipboard
@ObjCName(name = "ProtocolFactory", exact = true)
sealed interface ProtocolFactory<W : Any>

A marker interface for the widget-side factory of the protocol.

Link copied to clipboard
@ObjCName(name = "ProtocolMismatchHandler", exact = true)
interface ProtocolMismatchHandler

Handler invoked when the protocol sent from Compose to the widget display encounters unknown entities. This usually occurs when either the Compose-side or the widget-side was generated from a newer schema than the other, or if their schemas were changed in an incompatible way.

Link copied to clipboard
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.

Link copied to clipboard
fun interface UiEventSink

A version of EventSink which consumes UiEvents.

Properties

Link copied to clipboard