AndroidScannerViewModel

class AndroidScannerViewModel(serviceRepository: ServiceRepository, radioController: RadioController, radioInterfaceService: RadioInterfaceService, recentAddressesDataSource: RecentAddressesDataSource, getDiscoveredDevicesUseCase: GetDiscoveredDevicesUseCase, bluetoothRepository: BluetoothRepository, usbRepository: UsbRepository, bleScanner: BleScanner? = null) : ScannerViewModel(source)

Constructors

Link copied to clipboard
constructor(serviceRepository: ServiceRepository, radioController: RadioController, radioInterfaceService: RadioInterfaceService, recentAddressesDataSource: RecentAddressesDataSource, getDiscoveredDevicesUseCase: GetDiscoveredDevicesUseCase, bluetoothRepository: BluetoothRepository, usbRepository: UsbRepository, bleScanner: BleScanner? = null)

Properties

Link copied to clipboard
val bleDevicesForUi: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<org/meshtastic/feature/connections/model/DeviceListEntry>>

A combined list of bonded and scanned BLE devices for the UI.

Link copied to clipboard
val discoveredTcpDevicesForUi: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<org/meshtastic/feature/connections/model/DeviceListEntry>>

UI StateFlow for discovered TCP devices (NSD).

Link copied to clipboard
val errorText: ERROR CLASS: Symbol not found for StateFlow<kotlin/String?>
Link copied to clipboard
val isBleScanning: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean>
Link copied to clipboard
val recentTcpDevicesForUi: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<org/meshtastic/feature/connections/model/DeviceListEntry>>

UI StateFlow for recent TCP devices.

Link copied to clipboard
val selectedAddressFlow: ERROR CLASS: Symbol not found for StateFlow<kotlin/String?>
Link copied to clipboard
val selectedNotNullFlow: ERROR CLASS: Symbol not found for StateFlow<kotlin/String>
Link copied to clipboard
val showMockInterface: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean>
Link copied to clipboard
val supportedDeviceTypes: List<ERROR CLASS: Symbol not found for org.meshtastic.core.model.DeviceType>
Link copied to clipboard
val usbDevicesForUi: ERROR CLASS: Symbol not found for StateFlow<kotlin/collections/List<org/meshtastic/feature/connections/model/DeviceListEntry>>

UI StateFlow for USB devices.

Functions

Link copied to clipboard
fun addRecentAddress(address: String, name: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCleared()
Link copied to clipboard

Called by the GUI when a new device has been selected by the user.

Link copied to clipboard
Link copied to clipboard
fun setErrorText(text: String)
Link copied to clipboard
Link copied to clipboard