UiPrefs

interface UiPrefs(source)

Reactive interface for general UI preferences.

Properties

Link copied to clipboard
abstract val appIntroCompleted: StateFlow<Boolean>
Link copied to clipboard
abstract val bleAutoScan: StateFlow<Boolean>

Whether BLE scanning should auto-start when the Connections screen is opened.

Link copied to clipboard
abstract val contrastLevel: StateFlow<Int>
Link copied to clipboard
abstract val excludeInfrastructure: StateFlow<Boolean>
Link copied to clipboard
abstract val excludeMqtt: StateFlow<Boolean>
Link copied to clipboard
abstract val hasShownNotPairedWarning: StateFlow<Boolean>
Link copied to clipboard
abstract val includeUnknown: StateFlow<Boolean>
Link copied to clipboard
abstract val locale: StateFlow<String>
Link copied to clipboard
abstract val networkAutoScan: StateFlow<Boolean>

Whether NSD network scanning should auto-start when the Connections screen is opened.

Link copied to clipboard
abstract val nodeSort: StateFlow<Int>
Link copied to clipboard
abstract val onlyDirect: StateFlow<Boolean>
Link copied to clipboard
abstract val onlyOnline: StateFlow<Boolean>
Link copied to clipboard
abstract val showBleTransport: StateFlow<Boolean>

Whether the BLE transport section is visible in the Connections device list.

Link copied to clipboard
abstract val showIgnored: StateFlow<Boolean>
Link copied to clipboard
abstract val showNetworkTransport: StateFlow<Boolean>

Whether the network (TCP/NSD) transport section is visible in the Connections device list.

Link copied to clipboard
abstract val showQuickChat: StateFlow<Boolean>
Link copied to clipboard
abstract val showUsbTransport: StateFlow<Boolean>

Whether the USB transport section is visible in the Connections device list.

Link copied to clipboard
abstract val theme: StateFlow<Int>

Functions

Link copied to clipboard
abstract fun setAppIntroCompleted(completed: Boolean)
Link copied to clipboard
abstract fun setBleAutoScan(enabled: Boolean)
Link copied to clipboard
abstract fun setContrastLevel(value: Int)
Link copied to clipboard
abstract fun setExcludeInfrastructure(value: Boolean)
Link copied to clipboard
abstract fun setExcludeMqtt(value: Boolean)
Link copied to clipboard
Link copied to clipboard
abstract fun setIncludeUnknown(value: Boolean)
Link copied to clipboard
abstract fun setLocale(languageTag: String)
Link copied to clipboard
abstract fun setNetworkAutoScan(enabled: Boolean)
Link copied to clipboard
abstract fun setNodeSort(value: Int)
Link copied to clipboard
abstract fun setOnlyDirect(value: Boolean)
Link copied to clipboard
abstract fun setOnlyOnline(value: Boolean)
Link copied to clipboard
abstract fun setShouldProvideNodeLocation(nodeNum: Int, provide: Boolean)
Link copied to clipboard
abstract fun setShowBleTransport(enabled: Boolean)
Link copied to clipboard
abstract fun setShowIgnored(value: Boolean)
Link copied to clipboard
abstract fun setShowNetworkTransport(enabled: Boolean)
Link copied to clipboard
abstract fun setShowQuickChat(show: Boolean)
Link copied to clipboard
abstract fun setShowUsbTransport(enabled: Boolean)
Link copied to clipboard
abstract fun setTheme(value: Int)
Link copied to clipboard
abstract fun shouldProvideNodeLocation(nodeNum: Int): StateFlow<Boolean>