RadioLinks

interface RadioLinks(source)

The radio links this platform can open, by saved device address.

Properties

Link copied to clipboard

Whether this build carries the packet capture a replay radio plays; without it r opens the plain mock.

Link copied to clipboard
abstract val mockTransportEnabled: StateFlow<Boolean>

Whether the virtual demo radios (m mock, r replay) may be offered and opened right now. It can flip at runtime (the Android Demo Mode gesture), and the device list and isAddressValid must read this one flow.

Link copied to clipboard

The device types this platform can connect to.

Functions

Link copied to clipboard
abstract fun isAddressValid(address: String?): Boolean

Whether address names a link this platform can open.

Link copied to clipboard
abstract fun open(address: String, scope: CoroutineScope): RadioLink?

Builds the SDK client for address on scope, or null for an address that opens nothing.

Link copied to clipboard
abstract fun toInterfaceAddress(interfaceId: InterfaceId, rest: String): String

The full address for rest on interfaceId.