LiveUpdateViewModel

Starts, switches and stops the Live Update from the Connections screen.

Constructors

Link copied to clipboard
constructor(prefs: LiveUpdatePrefs, nodeRepository: NodeRepository)

Properties

Link copied to clipboard
val candidates: StateFlow<List<Node>>

Nodes the user can track, in the order the chooser lists them.

Link copied to clipboard
val mode: StateFlow<LiveUpdateMode>
Link copied to clipboard
val trackedNode: StateFlow<Node?>

Functions

Link copied to clipboard
expect open fun addCloseable(closeable: AutoCloseable)
expect fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
expect fun <T : AutoCloseable> getCloseable(key: String): T?
Link copied to clipboard