RadioConfigRepository

Properties

Link copied to clipboard
abstract val channelSetFlow: Flow<ChannelSet>

Flow representing the ChannelSet data store.

Link copied to clipboard
abstract val deviceProfileFlow: Flow<DeviceProfile>

Flow representing the combined DeviceProfile protobuf.

Link copied to clipboard
abstract val deviceUIConfigFlow: Flow<DeviceUIConfig?>

The connected device's UI configuration, from the active session's SDK config bundle. Null between sessions, including while reconnecting, before the handshake has delivered one, or when the firmware sends none.

Link copied to clipboard
abstract val fileManifestFlow: Flow<List<FileInfo>>

The connected device's file manifest from its handshake, in the order sent; empty with no session.

Link copied to clipboard
abstract val localConfigFlow: Flow<LocalConfig>

Flow representing the LocalConfig data store.

Link copied to clipboard
abstract val loraRegionPresetMapFlow: Flow<LoRaRegionPresetMap?>

The firmware's region to modem-preset compatibility map, from the active session's SDK config bundle. Null between sessions, including while reconnecting, or when the connected firmware predates this message (< 2.8). The local LoRa config UI uses it to constrain the preset picker to the presets legal in the selected region.

Link copied to clipboard
abstract val moduleConfigFlow: Flow<LocalModuleConfig>

Flow representing the LocalModuleConfig data store.

Functions

Link copied to clipboard
abstract suspend fun clearChannelSet()

Clears the ChannelSet data in the data store.

Link copied to clipboard
abstract suspend fun clearLocalConfig()

Clears the LocalConfig data in the data store.

Link copied to clipboard
abstract suspend fun clearLocalModuleConfig()

Clears the LocalModuleConfig data in the data store.

Link copied to clipboard
abstract suspend fun reconcileConversations()

Re-keys stored conversations onto the current channel set.

Link copied to clipboard
abstract suspend fun replaceAllSettings(settingsList: List<ChannelSettings>)

Replaces the ChannelSettings list with a new settingsList.

Link copied to clipboard
abstract suspend fun setLocalConfig(config: Config)

Updates LocalConfig from each Config oneOf.

Link copied to clipboard
abstract suspend fun setLocalModuleConfig(config: ModuleConfig)

Updates LocalModuleConfig from each ModuleConfig oneOf.

Link copied to clipboard
abstract suspend fun updateChannelSet(settingsList: List<ChannelSettings>?, loraConfig: Config.LoRaConfig?)

Atomically updates the cached channel set. A null argument preserves that field's current value.

Link copied to clipboard
abstract suspend fun updateChannelSettings(channel: Channel)

Updates the ChannelSettings list with the provided channel.