BaseUIViewModel

abstract class BaseUIViewModel(nodeDB: ERROR CLASS: Symbol not found for NodeRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, radioController: ERROR CLASS: Symbol not found for RadioController, radioInterfaceService: ERROR CLASS: Symbol not found for RadioInterfaceService, meshLogRepository: ERROR CLASS: Symbol not found for MeshLogRepository, firmwareReleaseRepository: ERROR CLASS: Symbol not found for FirmwareReleaseRepository, uiPreferencesDataSource: ERROR CLASS: Symbol not found for UiPreferencesDataSource, meshServiceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, alertManager: AlertManager) : <ERROR CLASS> ERROR CLASS: Symbol not found for ViewModel(source)

Shared base for the application-level ViewModel.

Contains all platform-independent state and actions (themes, alerts, connection state, firmware checks, traceroute, shared contacts, channel sets, unread counts, etc.). The thin Android adapter org.meshtastic.app.model.UIViewModel extends this class and adds the deep-link / URI boundary that requires android.net.Uri.

Constructors

Link copied to clipboard
constructor(nodeDB: ERROR CLASS: Symbol not found for NodeRepository, serviceRepository: ERROR CLASS: Symbol not found for ServiceRepository, radioController: ERROR CLASS: Symbol not found for RadioController, radioInterfaceService: ERROR CLASS: Symbol not found for RadioInterfaceService, meshLogRepository: ERROR CLASS: Symbol not found for MeshLogRepository, firmwareReleaseRepository: ERROR CLASS: Symbol not found for FirmwareReleaseRepository, uiPreferencesDataSource: ERROR CLASS: Symbol not found for UiPreferencesDataSource, meshServiceNotifications: ERROR CLASS: Symbol not found for MeshServiceNotifications, packetRepository: ERROR CLASS: Symbol not found for PacketRepository, alertManager: AlertManager)

Properties

Link copied to clipboard
val appIntroCompleted: ERROR CLASS: Symbol not found for StateFlow<kotlin/Boolean>
Link copied to clipboard
val clientNotification: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for ClientNotification?>
Link copied to clipboard
val connectionState: ERROR CLASS: Unresolved name: connectionState
Link copied to clipboard
val currentAlert: ERROR CLASS: Unresolved name: asStateFlow
Link copied to clipboard
val firmwareEdition: ERROR CLASS: Unresolved name: map
Link copied to clipboard
val latestStableFirmwareRelease: ERROR CLASS: Unresolved name: mapNotNull
Link copied to clipboard
val meshActivity: ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for MeshActivity>

Emits events for mesh network send/receive activity.

Link copied to clipboard
val myNodeInfo: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for MyNodeInfo?>
Link copied to clipboard
val neighborInfoResponse: ERROR CLASS: Symbol not found for StateFlow<kotlin/String?>
Link copied to clipboard
val requestChannelSet: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for ChannelSet?>
Link copied to clipboard
val scrollToTopEventFlow: ERROR CLASS: Symbol not found for Flow<org/meshtastic/core/ui/component/ScrollToTopEvent>
Link copied to clipboard
val sharedContactRequested: ERROR CLASS: Symbol not found for StateFlow<ERROR CLASS: Symbol not found for SharedContact?>
Link copied to clipboard
val theme: ERROR CLASS: Symbol not found for StateFlow<kotlin/Int>
Link copied to clipboard
val tracerouteResponse: ERROR CLASS: Symbol not found for Flow<ERROR CLASS: Symbol not found for TracerouteResponse?>
Link copied to clipboard
val unreadMessageCount: ERROR CLASS: Symbol not found for StateFlow

Functions

Link copied to clipboard
fun clearClientNotification(notification: ERROR CLASS: Symbol not found for ClientNotification)
Link copied to clipboard
Link copied to clipboard

Called immediately after activity observes requestChannelUrl

Link copied to clipboard

Called immediately after activity observes requestChannelUrl

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun onCleared()
Link copied to clipboard
fun setDeviceAddress(address: String)
Link copied to clipboard
fun setRequestChannelSet(channelSet: ERROR CLASS: Symbol not found for ChannelSet??)
Link copied to clipboard
fun setSharedContactRequested(contact: ERROR CLASS: Symbol not found for SharedContact??)
Link copied to clipboard
fun showAlert(title: String? = null, titleRes: ERROR CLASS: Symbol not found for StringResource?? = null, message: String? = null, messageRes: ERROR CLASS: Symbol not found for StringResource?? = null, composableMessage: ComposableContent? = null, html: String? = null, onConfirm: () -> Unit? = {}, onDismiss: () -> Unit? = null, confirmText: String? = null, confirmTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, dismissText: String? = null, dismissTextRes: ERROR CLASS: Symbol not found for StringResource?? = null, choices: Map<String, () -> Unit> = emptyMap())
Link copied to clipboard
fun tracerouteMapAvailability(forwardRoute: List<Int>, returnRoute: List<Int>): ERROR CLASS: Symbol not found for TracerouteMapAvailability