FabricRemoteScreens

Native custom-payload endpoint shared by all supported Fabric clients. Client extensions register their factories before the first play connection captures registry. Network callbacks enqueue only owned bytes; all session and rendering work runs on the client tick thread.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun enqueue(connection: Connection, bytes: ByteArray)

Receives one authenticated native payload, including a greeting arriving before the first client tick.

Link copied to clipboard
fun fail(view: Screen, failure: Throwable): Boolean

Contains a native remote-screen failure after the host has performed terminal resource cleanup. Returns false for local screens so their established exception contract remains intact.

Link copied to clipboard
fun shutdown()

Releases the transport and screen before native shutdown, without navigating to a replacement screen. Called by the existing render-thread shutdown transaction; cleanup failure is logged after independent queues are released.

Link copied to clipboard
fun tick()

Reconciles the native connection lifetime and drains bounded protocol work on the client thread.