ITextBuffer

interface ITextBuffer : ISignal<RdTextChange>

Functions

Link copied to clipboard
abstract fun advise(lifetime: Lifetime, handler: (RdTextChange) -> Unit)
Link copied to clipboard
abstract fun assertState(allText: String)

Asserts that both sides have the same document text if buffer versions are same.

Link copied to clipboard
abstract fun fire(value: RdTextChange)
Link copied to clipboard
abstract fun reset(text: String)

Resets TextBuffer state and sends event to replace a whole text on the opposite side. Used fot setting initial text too.

Properties

Link copied to clipboard
abstract val bufferVersion: TextBufferVersion

Current buffer version that consists from a pair of master and slave timestamps.

Link copied to clipboard
abstract val changing: Boolean
Link copied to clipboard
abstract val historyChanged: ISource<RdTextChange>

Source of events that have been applied upon a document state ever.

Link copied to clipboard
abstract val isMaster: Boolean

Indicates if this side has higher priority level than other.

Inheritors

Link copied to clipboard
Link copied to clipboard