AndroidRadioTransportFactory

class AndroidRadioTransportFactory(context: Context, buildConfigProvider: BuildConfigProvider, usbRepository: UsbRepository, usbManager: UsbManager, hiddenFeaturesUnlock: HiddenFeaturesUnlock, scanner: BleScanner, bluetoothRepository: BluetoothRepository, connectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers) : BaseRadioTransportFactory(source)

Android implementation of RadioTransportFactory. Handles pure-KMP transports (BLE) via BaseRadioTransportFactory while creating platform-specific connections (TCP, USB/Serial, Mock, NOP) directly in createPlatformTransport.

Constructors

Link copied to clipboard
constructor(context: Context, buildConfigProvider: BuildConfigProvider, usbRepository: UsbRepository, usbManager: UsbManager, hiddenFeaturesUnlock: HiddenFeaturesUnlock, scanner: BleScanner, bluetoothRepository: BluetoothRepository, connectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers)

Properties

Link copied to clipboard

Probed once: the asset is baked into the APK, so its presence cannot change while the process lives. Empty counts as absent to match createReplayTransport's own guard.

Link copied to clipboard
open override val mockTransportEnabled: StateFlow<Boolean>

Demo Mode gate.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun createTransport(address: String, service: RadioInterfaceService): RadioTransport
Link copied to clipboard
open override fun isAddressValid(address: String?): Boolean
Link copied to clipboard
open override fun toInterfaceAddress(interfaceId: InterfaceId, rest: String): String