open

fun open(ownerPlugin: Plugin, player: Player, definition: () -> UiDefinition): UiSession(source)

Creates state and a fresh definition inside the player's execution owner, synchronously on the calling region. Mutable state must be created inside this factory and outside the definition's reevaluated content.