Package-level declarations

Types

Link copied to clipboard

Visual style for ConnectionActionButton. Maps to the four canonical M3 button variants.

Link copied to clipboard
data class CurrentlyConnectedText(val unknownLabel: String, val rssiLabel: String, val disconnectLabel: String, val firmwareVersion: String?, val loraSummary: String? = null)

Plain text resolved outside the animated connected-device subtree.

Link copied to clipboard
data class LoraSummary(val preset: String, val region: String?)

Preset and region labels for the connected card; region is null while the region is unset.

Functions

Link copied to clipboard
fun ConnectingDeviceInfo(deviceName: String, deviceAddress: String, connectionStatus: ConnectionStatus, connectionProgress: String?, onClickDisconnect: () -> Unit, modifier: Modifier = Modifier)

Displays the currently connecting (or connected) device with its name, address, connection status, and a disconnect button.

Link copied to clipboard
fun ConnectionActionButton(onClick: () -> Unit, icon: ImageVector, text: String, modifier: Modifier = Modifier, style: ConnectionActionButtonStyle = ConnectionActionButtonStyle.Filled, enabled: Boolean = true, iconContentDescription: String? = null)

Shared "icon + label" button used throughout the Connections screen. Centralises M3 sizing conventions (ButtonDefaults.IconSize, ButtonDefaults.IconSpacing, and the variant-appropriate *WithIconContentPadding) so every scan / add / empty-state affordance renders identically.

Link copied to clipboard
fun CurrentlyConnectedInfo(node: Node, text: CurrentlyConnectedText, onNavigateToNodeDetails: (Int) -> Unit, onClickDisconnect: () -> Unit, modifier: Modifier = Modifier, bleDevice: DeviceListEntry.Ble? = null, onClickLora: () -> Unit = {})
Link copied to clipboard
fun DeviceList(connectionState: ConnectionState, selectedDevice: String, bleDevices: List<DeviceListEntry>, usbDevices: List<DeviceListEntry>, discoveredTcpDevices: List<DeviceListEntry>, recentTcpDevices: List<DeviceListEntry>, isBleScanning: Boolean, isNetworkScanning: Boolean, activeTransport: DeviceType, onSelectDevice: (DeviceListEntry) -> Unit, onToggleBleScan: () -> Unit, onToggleNetworkScan: () -> Unit, onAddManualAddress: (address: String, fullAddress: String) -> Unit, onRemoveRecentAddress: (DeviceListEntry) -> Unit, modifier: Modifier = Modifier, virtualDevices: List<DeviceListEntry> = emptyList(), contentPadding: PaddingValues = PaddingValues(0.dp), header: @Composable () -> Unit? = null)

Unified device list: one selected BLE / Network / USB pane rendered as a scrollable LazyColumn.

Link copied to clipboard
fun DeviceListItem(connectionState: ConnectionState, device: DeviceListEntry, onSelect: () -> Unit, modifier: Modifier = Modifier, onDelete: () -> Unit? = null, rssi: Int? = null)
Link copied to clipboard
fun DeviceSectionHeader(title: String, modifier: Modifier = Modifier, showProgress: Boolean = false, trailing: @Composable () -> Unit = {})

Section header used to group content in the Connections list.

Link copied to clipboard
fun DisconnectButton(onClick: () -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, label: String = stringResource(Res.string.disconnect))

Full-width error-tinted OutlinedButton used by both the "currently connected" and "connecting" card states. Centralises the color/label so every call site stays in lock-step.

Link copied to clipboard
fun EventFirmwareCard(edition: EventFirmwareEdition, modifier: Modifier = Modifier)

Card announcing that the connected device is running an event firmware edition, and the entry point to EventInfoSheet for that event's welcome message, venue, dates, and links.

Link copied to clipboard
fun LiveUpdateCard(mode: LiveUpdateMode, trackedNode: Node?, turnedOffInSettings: Boolean, onClick: () -> Unit, onStop: () -> Unit, onOpenSettings: () -> Unit, modifier: Modifier = Modifier)

The Connections row that says what the Live Update shows and where, and opens the chooser. While one runs the row carries its own Stop, so ending it never needs the chooser.

Link copied to clipboard
fun LiveUpdateChooserSheet(mode: LiveUpdateMode, candidates: List<Node>, onStart: (LiveUpdateMode) -> Unit, onStop: () -> Unit, onDismiss: () -> Unit)

Picks what the Live Update shows: Mesh Status, or one node from a searchable list. candidates arrive already ordered, favorites first.

Link copied to clipboard
fun LiveUpdateSection(connected: Boolean, modifier: Modifier = Modifier)

The Live Update row and its chooser, on platforms that have Live Updates. Shown while connected, and while one runs whatever the connection, so a running Live Update can always be stopped.

Link copied to clipboard
fun loraSummary(lora: Config.LoRaConfig?, presetLabel: String?, regionLabel: String?, customLabel: String): LoraSummary?

Null until the LoRa config is known.

Link copied to clipboard
fun TransportSelector(activeTransport: DeviceType, onSelectTransport: (DeviceType) -> Unit, modifier: Modifier = Modifier, showBluetooth: Boolean = true, showUsb: Boolean = true)

Single-choice transport selector rendered below the connection card. A Material 3 SingleChoiceSegmentedButtonRow makes the mutually-exclusive choice explicit: the segments read as one grouped control and the selected transport shows a check, rather than three independent chips whose filled state was read as "enabled/available" instead of "selected".