open

fun open(ownerPlugin: Any, player: Player, definition: () -> ScreenDefinition): CompletableFuture<RemoteScreenSession>(source)

Deprecated

Use VelocityUi.open with a UiDefinition factory.

Creates state and a fresh definition on the UI thread, then replaces this player's previous proxy-owned screen. Construct owner-thread state inside definition; capturing state created on another thread is unsupported. Unavailable clients and declarations return a terminal handle with a typed failure.