Transaction

Changes to the editor state are grouped into transactions.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The annotations on this transaction.

Link copied to clipboard

The document changes made by this transaction.

Link copied to clipboard

Indicates whether the transaction changed the document.

Link copied to clipboard

The effects added to the transaction.

Link copied to clipboard

The new document produced by the transaction.

Link copied to clipboard

The new selection produced by the transaction.

Link copied to clipboard

Indicates whether this transaction reconfigures the state.

Link copied to clipboard

Whether the selection should be scrolled into view.

Link copied to clipboard

The selection set by this transaction, or null.

Link copied to clipboard

The state from which the transaction starts.

Link copied to clipboard

The new state created by the transaction.

Functions

Link copied to clipboard
fun <T> annotation(type: AnnotationType<T>): T?

Get the value of the given annotation type, if any.

Link copied to clipboard

Returns true if the transaction has a user event annotation that is equal to or more specific than event.