RemoteClientSession

class RemoteClientSession(snapshot: RemoteMessage.Snapshot, registry: RemoteRegistry, limits: RemoteLimits = RemoteLimits(), send: (RemoteMessage) -> Unit) : AutoCloseable(source)

One client-side retained declaration source bound to a server-issued session identity. All calls run under the construction execution owner; network receivers must enqueue work for that owner. Invalid patch bases request one snapshot; actions are never replayed during resynchronization.

Constructors

Link copied to clipboard
constructor(snapshot: RemoteMessage.Snapshot, registry: RemoteRegistry, limits: RemoteLimits = RemoteLimits(), send: (RemoteMessage) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard

Current declaration count for connection-wide admission.

Link copied to clipboard
Link copied to clipboard

Receiver for synchronous client extension events; all controls are sequenced by the server.

Functions

Link copied to clipboard
fun bindUiSession(session: UiSession)

Binds native ownership once opening has succeeded.

Link copied to clipboard
open override fun close()

fun close(reason: RemoteFailure, notifyPeer: Boolean = true)

Ends this screen and releases its tree and transport captures, even if sending close fails.

Link copied to clipboard

Records native application without accepting older authoritative controls.

Link copied to clipboard

Creates one ordinary screen whose content observes committed remote declarations. The enclosing platform owns presentation and must close this session when that screen terminates.

Link copied to clipboard

Flushes committed text edits before the adapter flushes its bounded outgoing transport.

Link copied to clipboard

Records an ordered acknowledgement without acknowledging unsent client operations.

Completes only the matching client intent; authoritative application is reported separately.

Accepts a complete newer snapshot without replacing the screen host or replaying actions.

Applies an atomic validated patch, or requests a snapshot when its base is unavailable.

Link copied to clipboard

Reports native interaction termination, including Escape, hidden HUDs, and focus loss, to the owning server. Call after native lifecycle processing; unchanged modes never enqueue another request.