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)

Properties

Link copied to clipboard
val state: S

Functions

Link copied to clipboard
open override fun flushEdits(actions: RemoteClientActions)

Sends pending committed edits through the current screen's ordered operation stream.

Link copied to clipboard

Applies a confirmed server value without replacing the caller's native state instance.