TransportSelector
fun TransportSelector(activeTransport: DeviceType, onSelectTransport: (DeviceType) -> Unit, modifier: Modifier = Modifier, showBluetooth: Boolean = true, showUsb: Boolean = true)(source)
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".
Parameters
showBluetooth
false on hardware with no Bluetooth LE, where the BLE segment could never find anything.
showUsb
false on hardware with no USB host, unless Demo Mode needs the USB pane.