ScannedQrCodeViewModel

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

Constructors

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

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)

Set the radio config (also updates our saved copy in preferences). The dialog has closed by now, so a failure is reported with a snackbar that offers to retry the same import.