Package-level declarations
Types
Link copied to clipboard
class ScannedQrCodeViewModel(radioConfigRepository: RadioConfigRepository, radioController: RadioController, snackbarManager: SnackbarManager) : ViewModel
Functions
Link copied to clipboard
Link copied to clipboard
Add mode with free slots, for a link that carries channels only.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun SnackbarManager.reportingChannelUpdateFailure(retry: () -> Unit, write: suspend () -> Unit)
Runs a channel write and, when it fails, tells the user with a snackbar whose Retry action calls retry. The failure is rethrown afterwards so the caller's safeLaunch still logs it.
Link copied to clipboard
fun ScannedQrCodeDialog(incoming: ChannelSet, onDismiss: () -> Unit, viewModel: ScannedQrCodeViewModel = metroViewModel())
fun ScannedQrCodeDialog(channels: ChannelSet, incoming: ChannelSet, onDismiss: () -> Unit, maxChannels: Int = DEFAULT_MAX_CHANNELS, onConfirm: (ChannelSet) -> Unit)
Lets the user choose between adding the incoming channels to the radio and replacing the radio's channels and LoRa settings, review what will change, and confirm. Choosing a mode changes nothing; only the confirm button imports.