VelocityUi

Application API supplied by the installed Strata Velocity plugin. Construct owner-thread state inside open, and queue external state or session access through execute. Never block the UI thread on returned futures. Plugin events contain snapshots and do not block UI processing.

Functions

Link copied to clipboard

Asynchronously reads the current negotiated support, or null while unavailable.

Link copied to clipboard
fun <T> execute(ownerPlugin: Any, operation: () -> T): CompletableFuture<T>

Queues short state updates or session operations on the owner thread. Complete blocking work before calling this method.

Link copied to clipboard

Installs one runtime; closing the registration releases only that installation.

Link copied to clipboard
fun open(ownerPlugin: Any, player: Player, definition: () -> UiDefinition): CompletableFuture<UiSession>

Creates state and a fresh one-shot definition on the UI thread, then opens the owned session.

Link copied to clipboard
fun register(ownerPlugin: Any, type: ProjectionType): CompletableFuture<Unit>

Registers a plugin-owned exact schema for future client negotiations.

Link copied to clipboard
fun release(ownerPlugin: Any): CompletableFuture<Unit>

Releases one consumer's sessions and schemas before proxy shutdown.