RemoteEditingState
class RemoteEditingState<S : Any, T : Any>(val state: S, type: ProjectionType, snapshot: RemoteBindingSnapshot, decode: (ProjectionValue) -> T, encode: (T) -> ProjectionValue, read: (S) -> T, write: (S, T) -> Unit) : RemoteEditableValue(source)
One stable native editing state with optimistic value ordering shared by standard and custom controls. The enclosing RemoteClientStates owns its lifetime and calls updates outside declaration evaluation. Unacknowledged values and unchanged confirmations never invoke write, preserving native selection and composition.
Constructors
Link copied to clipboard
constructor(state: S, type: ProjectionType, snapshot: RemoteBindingSnapshot, decode: (ProjectionValue) -> T, encode: (T) -> ProjectionValue, read: (S) -> T, write: (S, T) -> Unit)