Binding1
constructor(program: Program, element: Element, event: Event<E>, container: Any, property: KMutableProperty1<Any, T>, newValueFromEvent: (E) -> T, setElementValue: (T) -> Unit)(source)
Parameters
program
The program execution context for managing coroutines.
element
The external UI element or container being synchronized.
event
The event that triggers updates to the binding.
container
The container object that owns the property being synchronized.
property
The mutable property of the container to be synchronized.
newValueFromEvent
A lambda mapping an event payload to the new property value.
setElementValue
A lambda to update the external element's value.
Type Parameters
E
The type of the event payload.
T
The type of the property being bound.