StrataUiEvent

sealed interface StrataUiEvent(source)

Committed lifecycle notifications emitted inside the service's execution owner. Notifications run on the server thread; listener failures never undo committed state. UI identity is scoped to the service and connection. Capability and presentation values are snapshots; player, owner Mod, and session references retain their native ownership.

Inheritors

Types

Link copied to clipboard
data class Closed(val player: ServerPlayer, val owner: ModContainer, val identity: Long, val session: UiSession, val presentation: UiPresentation?, val category: UiCategory?, val reason: UiCloseReason) : StrataUiEvent

Terminal ownership, including rejected openings that never emitted Opened.

Link copied to clipboard
data class Disconnected(val player: ServerPlayer, val reason: UiCloseReason) : StrataUiEvent

Retirement of a previously ready connection after every UI has closed.

Link copied to clipboard
data class Opened(val player: ServerPlayer, val owner: ModContainer, val identity: Long, val session: UiSession, val presentation: UiPresentation, val category: UiCategory?) : StrataUiEvent

First acknowledged native presentation, including initially hidden HUDs.

Link copied to clipboard
data class PresentationChanged(val player: ServerPlayer, val owner: ModContainer, val identity: Long, val session: UiSession, val previous: UiPresentation, val presentation: UiPresentation, val category: UiCategory?) : StrataUiEvent

Acknowledged transition between distinct presentations of one retained session.

Link copied to clipboard
data class Ready(val player: ServerPlayer, val capabilities: UiClientCapabilities) : StrataUiEvent

Successful negotiation, once per connection generation.

Properties

Link copied to clipboard
abstract val player: ServerPlayer

Authenticated native player belonging to this notification.