UiSession

Execution-owner-confined handle for one retained UI, shared by client and remote event callbacks. Controls requested inside an event are applied after event delivery finishes. Terminal handles never reopen and retain their last applied presentation.

Properties

Link copied to clipboard

Applied gameplay permissions while this session owns input.

Link copied to clipboard

Applied interaction mode; hiding a HUD ends its interaction.

Link copied to clipboard

Applied native presentation, or null before the initial application acknowledgement.

Link copied to clipboard
abstract val status: UiSessionStatus

Current lifecycle, including pending switches and terminal reasons.

Functions

Link copied to clipboard
abstract override fun close()

Idempotently ends the session; takes precedence over unapplied controls.

Link copied to clipboard

Changes permissions and releases previously forwarded pressed inputs.

Link copied to clipboard

Selects cursor or camera interaction, or stops HUD interaction.

Link copied to clipboard
abstract fun switch(presentation: UiPresentation): UiOperationResult

Requests a new native wrapper without replacing the contents or identity.