ScannedQrCodeViewModel

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

Constructors

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

Properties

Link copied to clipboard
val channels: StateFlow<ChannelSet>

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).