DisplayMirrorManager

Holds the connected device's mirrored display while mirroring is enabled (see AdminMessage.set_display_mirror). The SDK reassembles, validates and composites the frames; this publishes its image for the UI.

Properties

Link copied to clipboard
abstract val frame: StateFlow<DisplayImage?>

Latest complete frame, or null before the first one arrives.

Link copied to clipboard
abstract val palette: StateFlow<DisplayPalette?>

Latest complete color palette, or null when the device renders monochrome.

Functions

Link copied to clipboard
abstract fun handleImage(image: DisplayImage)

Publishes the SDK's current display image.

Link copied to clipboard
abstract fun handlePalette(palette: DisplayPalette)

Publishes a complete palette from the SDK.

Link copied to clipboard
abstract fun reset()

Clears the latest frame. Call when a session ends or a fresh mirror UI opens, so a previous device's final screen is never shown as if live. The palette outlives a reset because the device sends it once per connection.