ScannedQrCodeViewModel

class ScannedQrCodeViewModel(radioConfigRepository: RadioConfigRepository, radioController: RadioController, nodeRepository: NodeRepository) : ViewModel(source)

Constructors

Link copied to clipboard
constructor(radioConfigRepository: RadioConfigRepository, radioController: RadioController, nodeRepository: NodeRepository)

Properties

Link copied to clipboard
val channels: StateFlow<ChannelSet>
Link copied to clipboard
val maxChannels: StateFlow<Int>

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
fun setChannels(channelSet: ChannelSet): Job

Set the radio config (also updates our saved copy in preferences).