Package-level declarations

Types

Link copied to clipboard

Tracks which conversation the user is currently looking at, so the notification path does not buzz the phone for a message whose bubble is already animating onto the screen.

Link copied to clipboard
interface AdminController

Device configuration and control operations.

Link copied to clipboard
interface AdminEditScope

Configuration operations valid inside an AdminController.editSettings transaction, scoped to a single destination node so callers don't repeat the node number or manage packet IDs. Mirrors the SDK's AdminEdit.

Link copied to clipboard
interface AnalyticsPrefs

Reactive interface for analytics-related preferences.

Link copied to clipboard

Reactive interface for App Functions (system AI integration) preferences.

Link copied to clipboard

One App Functions switch: the master toggle or a single function's.

Link copied to clipboard
fun interface AppIconBadge

The count on the app's launcher icon. A platform without one binds nothing.

Link copied to clipboard
interface AppPreferences

Consolidated interface for all application preferences.

Link copied to clipboard

Interface for triggering updates to application widgets.

Link copied to clipboard

Provides the nRF52 bootloader/OTA quirk catalog resolved by the Meshtastic API (/resource/bootloaderOtaQuirks) and cached locally, seeded from the bundled device_bootloader_ota_quirks.json snapshot so it is never empty on a fresh install or while offline.

Link copied to clipboard
data class ConnectionIdentity(val sessionGeneration: Long, val address: String, val nodeNum: Int, val deviceId: String?)

Fresh-handshake identity for one connection session. Separate from the general NodeManager.myNodeNum/ NodeManager.myDeviceId StateFlows, which can retain stale cached values across transport switches. address, nodeNum, and deviceId are captured from one selected transport and one MyNodeInfo handshake so consumers never have to combine independently delivered address and identity flows. sessionGeneration is the active transport session generation at handshake time, so the association collector can discard an identity retained from a previous transport instance even if every other field is equal.

Link copied to clipboard

Read-only provider of the canonical app-level connection state.

Link copied to clipboard

Reactive interface for emoji preferences.

Link copied to clipboard
class DataPair(val name: String, val valueIn: Any?)

A key-value pair for sending properties with analytics events.

Link copied to clipboard
Link copied to clipboard

Provides msh.to device links resolved by the Meshtastic API (/resource/deviceLinks) and cached locally. Vendor and region-filtered marketplace links are shown on the device hardware detail view, plus a full directory.

Link copied to clipboard

The flasher's real-size 3D device models (/models/devices/<name>.glb), one per device illustration. A hardware entry's image file names its model by extension swap, and only some illustrations have one.

Link copied to clipboard

Interface for collecting packets during an active discovery scan. The scan engine implements this interface and registers/unregisters with the packet handler to receive packets during dwell windows.

Link copied to clipboard

Registry for discovery packet collectors. The scan engine registers itself when a scan starts and unregisters when it stops. The packet handler checks for an active collector and forwards packets to it.

Link copied to clipboard
interface DiscoveryPrefs

Reactive interface for Local Mesh Discovery scan preferences.

Link copied to clipboard

Stored Local Mesh Discovery sessions, their per-preset results, and the nodes heard under each preset.

Link copied to clipboard

Holds the connected device's mirrored display while mirroring is enabled (see AdminMessage.set_display_mirror). The SDK reassembles, validates and composites the frames; this publishes its image for the UI.

Link copied to clipboard

An expected radio rejection or timeout at an edit-settings transaction boundary.

Link copied to clipboard

Event-firmware display metadata, seeded from the bundled event_firmware.json snapshot.

Link copied to clipboard
interface FileService

Abstracts file system operations (like reading from or writing to URIs) so that ViewModels can remain platform-independent.

Link copied to clipboard
interface FilterPrefs

Reactive interface for message filtering preferences.

Link copied to clipboard
Link copied to clipboard
data class FirmwareUpdateProgress(val message: UiText, val percent: Int?)

What a running firmware update is doing, for surfaces outside the firmware screen. percent is null when unknown.

Link copied to clipboard
data class FirmwareUpdateStatus(val isOtaUpdateActive: Boolean = false, val isAwaitingOtaStatus: Boolean = false)
Link copied to clipboard
data class GeocodedPlace(val countryCode: String?, val subdivision: String?, val locality: String?)

What a reverse geocoder said about a point, in its own words.

Link copied to clipboard
data class GnssFix(val satellitesUsed: Int? = null, val hdop: Int? = null, val pdop: Int? = null, val vdop: Int? = null, val fixQuality: Int? = null, val fixType: Int? = null)

A GNSS receiver's own account of a fix, from its NMEA GGA and GSA sentences, in the units firmware's GPS reports: dilutions of precision in hundredths. Location carries none of it. A field the receiver left blank is null.

Link copied to clipboard
interface HistoryManager

Interface for managing store-and-forward history replay requests.

Link copied to clipboard
interface HomoglyphPrefs

Reactive interface for homoglyph encoding preferences.

Link copied to clipboard
interface LabelPrintPrefs

What the label print sheet remembers between uses.

Link copied to clipboard
sealed interface LiveUpdateMode

What the user-started Live Update shows. One mode at a time; Off leaves the service notification as it is.

Link copied to clipboard
interface LiveUpdatePrefs

The persisted LiveUpdateMode. Off by default.

Link copied to clipboard

Thrown when a command requires the local node identity before that identity is available.

Link copied to clipboard
data class Location(val latitude: Double, val longitude: Double, val altitudeMeters: Double? = null, val mslAltitudeMeters: Double? = null, val accuracyMeters: Float? = null, val speedMetersPerSecond: Float? = null, val bearingDegrees: Float? = null, val timeMillis: Long, val gnss: GnssFix? = null)

One location fix from the device. A reading the platform did not report is null, never zero: zero is a real altitude, speed and bearing.

Link copied to clipboard
Link copied to clipboard
interface LocationService

Abstracts high-level location requests (such as one-off current location) that may require platform-specific permission checks or hardware interactions.

Link copied to clipboard

Coordinates lockdown passphrase authentication for firmware-locked devices.

Link copied to clipboard

Encrypted per-device storage for lockdown passphrases.

Link copied to clipboard
Link copied to clipboard

The pinned nRF52/RP2040 maintenance-UF2 manifest (factory-erase and OTAFIX bootloader self-update images), seeded from a bundled asset and refreshed from resource/maintenanceUf2. Each image's own sha256 is still checked against its downloaded bytes before any write — see MaintenanceUf2.kt — this repository only caches the manifest that names those images.

Link copied to clipboard
data class MapCameraPosition(val latitude: Double, val longitude: Double, val zoom: Double)
Link copied to clipboard
interface MapConsentPrefs

Reactive interface for map consent.

Link copied to clipboard
data class MapFilterPrefs(val onlyFavorites: Boolean = false, val showWaypoints: Boolean = true, val showPrecisionCircle: Boolean = true, val onlyOnline: Boolean = false, val onlyDirect: Boolean = false, val onlySigned: Boolean = false, val onlyEncrypted: Boolean = false, val excludeMqtt: Boolean = false, val showIgnored: Boolean = false, val includeUnknown: Boolean = true, val lastHeardSeconds: Long = 0, val lastHeardTrackSeconds: Long = 0, val excludedRoles: Set<String> = emptySet())

The stored map filters, as one value. The map keeps its own copy of the node-list vocabulary on purpose: filtering the map to routers is not a statement about the contact list.

Link copied to clipboard
interface MapPrefs

Reactive interface for general map preferences.

Link copied to clipboard

Reactive interface for map tile provider settings.

Link copied to clipboard
interface MeshBeaconPrefs

Reactive persistence for received Mesh Beacon invitations. Records are opaque, self-describing strings (see MeshBeaconOffer.encode) so this prefs layer stays free of proto/model types.

Link copied to clipboard
class MeshBeaconRepository(prefs: MeshBeaconPrefs, scope: CoroutineScope)

Holds Mesh Beacon invitations received from other meshes. Beacons are advisory, zero-hop advertisements — not messages or contacts — so they live in the Discovery surface, which presents them for the user to Discover / Join / Dismiss. The list is capped and deduped in memory (the source of truth) and written through to MeshBeaconPrefs so invitations survive an app restart until the user explicitly dismisses them (Apple 014-mesh-beacons FR-015).

Link copied to clipboard

Interface for managing the connection lifecycle and status with the mesh radio.

Link copied to clipboard
interface MeshDataHandler

Interface for handling incoming mesh data packets and routing them to the appropriate handlers.

Link copied to clipboard

Interface for managing the local node's location updates and reporting.

Link copied to clipboard
data class MeshLogCleanupPolicy(val loggingEnabled: Boolean, val retentionDays: Int)

Persisted policy used by background mesh-log cleanup.

Link copied to clipboard
interface MeshLogPrefs

Reactive interface for mesh log preferences.

Link copied to clipboard

Repository interface for managing and retrieving logs from the database.

Link copied to clipboard

Decodes MeshLogPrefs.retentionDays, which overloads two sentinels onto the day count: KEEP_FOREVER never prunes and ONE_HOUR keeps only the last hour.

Link copied to clipboard

The one notification API for shared code: every notification the app posts or cancels goes through here, and each platform renders it with its own channels, styles and tap targets. NotificationManager is the desktop's dispatch primitive underneath its implementation, not a second way in.

Link copied to clipboard
interface MeshPrefs

Reactive interface for mesh connection settings.

Link copied to clipboard

Interface for managing background workers for mesh-related tasks.

Link copied to clipboard

How an arriving message for a conversation should be announced, given where the user currently is.

Link copied to clipboard
interface MessageFilter

Interface for filtering messages based on user-configured filter words.

Link copied to clipboard
interface MessageQueue

Interface for enqueuing background work for transmitting messages. This allows the domain layer to trigger durable transmission without depending on Android-specific WorkManager.

Link copied to clipboard

Messaging operations — sending data packets, reactions, and shared contacts.

Link copied to clipboard
interface MqttManager

Interface for managing MQTT proxy communication.

Link copied to clipboard

The MQTT root directory the topic finder places a user with, seeded from a bundled asset and refreshed from resource/mqttRoots.

Link copied to clipboard

Interface for handling neighbor info responses from the mesh.

Link copied to clipboard

Read-only provider of neighbor info response state.

Link copied to clipboard
interface NodeController

Node management operations — favorite, ignore, mute, and remove nodes.

Link copied to clipboard
data class NodeFilterPrefs(val includeUnknown: Boolean = true, val excludeInfrastructure: Boolean = false, val onlyOnline: Boolean = false, val onlyDirect: Boolean = false, val showIgnored: Boolean = false, val onlySigned: Boolean = false, val onlyEncrypted: Boolean = false, val excludeMqtt: Boolean = false, val excludeUnheard: Boolean = false)

The stored node-list filters, as one value.

Link copied to clipboard

Interface for managing the in-memory node database and processing received node information.

Link copied to clipboard
interface NodeRepository

Repository interface for managing node-related data.

Link copied to clipboard
class NodeRequest(val requestId: Int?, outcome: suspend () -> Int?)

A node request the radio admitted.

Link copied to clipboard
class NodeRestartTracker(scope: CoroutineScope)

Tracks a window in which the locally connected node is expected to restart (a config save the firmware applies with a reboot, or an explicit reboot command). While the window is open, an observed transport disconnect is the expected consequence of the restart — the UI presents "restarting" instead of the alarming disconnected state, and the foreground-service notification stays on a connecting presentation.

Link copied to clipboard

AppWidgetUpdater for hosts with no widgets. Bind it per platform; it has no binding of its own.

Link copied to clipboard

MagneticFieldProvider that reports zero declination. Bind it per platform; it has no binding of its own.

Link copied to clipboard

PlatformAnalytics for hosts with no analytics SDK. Bind it per platform; it has no binding of its own.

Link copied to clipboard

ReverseGeocoder for hosts with no geocoder. Bind it per platform; it has no binding of its own.

Link copied to clipboard
data class Notification(val title: String, val message: String, val type: Notification.Type = Type.Info, val category: Notification.Category = Category.Message, val isSilent: Boolean = false, val id: Int? = null, val deepLink: String? = null, val onlyAlertOnce: Boolean = false)

A notification as the dispatch primitive (NotificationManager) sees it.

Link copied to clipboard

Dispatch primitive underneath a platform's MeshNotificationManager: posts opaque Notification records, cancels by slot, or wipes all active notifications. Shared code never calls it directly; the desktop and web implementations compose over it through DispatchingMeshNotificationManager, while Android renders its notifications natively.

Link copied to clipboard

Reactive interface for notification preferences.

Link copied to clipboard
interface PacketHandler

Sends packets through the session's SDK paced queue and projects each send's delivery status onto its durable Room row.

Link copied to clipboard

Repository interface for managing mesh packets and message history.

Link copied to clipboard
data class PersistedPacket(val id: PersistedPacketId, val packet: DataPacket)

A persisted packet paired with the stable row identity needed by durable background work.

Link copied to clipboard
data class PersistedPacketId(val myNodeNum: Int, val uuid: Long)

Stable identity of one persisted packet row within its owning node database.

Link copied to clipboard
data class PersistedReaction(val id: PersistedReactionId, val reaction: Reaction)

A persisted reaction paired with the exact row identity needed by durable background work.

Link copied to clipboard
data class PersistedReactionId(val myNodeNum: Int, val replyId: Int, val userId: String, val emoji: String)

Stable identity of one persisted reaction row within its owning node database.

Link copied to clipboard
data class PhoneLocation(val latitude: Double, val longitude: Double, val altitude: Double?, val timeMillis: Long, val mslAltitude: Double? = null, val accuracyM: Float? = null, val verticalAccuracyM: Float? = null, val speedMps: Float? = null)

altitude is height above the WGS84 ellipsoid, as Android reports it, and null when the fix has none (a network fix). mslAltitude is height above mean sea level, null when the platform cannot convert. accuracyM and verticalAccuracyM are the fix's accuracy radii, null when the platform reports none. speedMps is ground speed, null when unknown.

Link copied to clipboard
Link copied to clipboard
data class PhoneLocationState(val permissionGranted: Boolean, val providerEnabled: Boolean, val location: PhoneLocation? = null)
Link copied to clipboard

Interface to abstract platform-specific functionalities, primarily for analytics and related services that differ between product flavors.

Link copied to clipboard
interface QueryController

Mesh query operations — position, traceroute, telemetry, user info, and metadata.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Central interface for controlling the radio and mesh network.

Link copied to clipboard

The selected radio and its SDK client: device selection, session admission and the per-session SDK clients.

Link copied to clipboard
interface RadioLink

One selected radio: its SDK client, which owns connecting and reconnecting, and the app pipeline it feeds.

Link copied to clipboard
interface RadioLinks

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

Link copied to clipboard
interface RadioPrefs

Reactive interface for radio settings.

Link copied to clipboard

Thrown when an operation never reaches the radio: no session is active, a precondition such as the peer's key fails, the SDK send queue declines it, or a local request goes unanswered.

Link copied to clipboard

Owns admission and revocation for work bound to one radio session.

Link copied to clipboard
data class RadioSessionContext(val generation: Long, val address: String)

Immutable identity of one radio session, which every session-bound write carries.

Link copied to clipboard

The service side of RadioLink.run: app session admission for the SDK sessions of one link.

Link copied to clipboard
data class ReceivedShellFrame(val from: Int, val frame: RemoteShell)

A decoded RemoteShell frame together with the node number that sent it.

Link copied to clipboard

Interface for handling RemoteShell packets (REMOTE_SHELL_APP portnum = 13).

Link copied to clipboard
interface ReverseGeocoder
Link copied to clipboard

Encrypted per-node storage for security (public/private) key backups.

Link copied to clipboard

Interface for managing background service state, connection status, and mesh events.

Link copied to clipboard

Write-side interface for service state mutations.

Link copied to clipboard

Why a running survey is logging nothing.

Link copied to clipboard

Logs the signal of each packet the connected radio hears against where the radio is. Passive: it sends nothing. Each start opens a session, which stop or the end of the process closes.

Link copied to clipboard
data class StoredPassphrase(val passphrase: String, val boots: Int, val hours: Int, val maxSessionSeconds: Int = 0)

Stored passphrase entry with associated TTL parameters.

Link copied to clipboard
data class StoredSecurityKeys(val publicKeyBase64: String, val privateKeyBase64: String, val timestamp: Long, val longName: String? = null)

A public/private key pair backed up for a single node, plus when it was saved and the node's long name at the time (null for backups saved before names were recorded).

Link copied to clipboard

Interface for handling Store & Forward (legacy) and SF++ packets.

Link copied to clipboard
class TakCertificateMaterial(val serverP12: ByteArray, val clientP12: ByteArray, val truststoreP12: ByteArray, val password: String)

The per-install TLS material for the local TAK server.

Link copied to clipboard

Encrypted per-install storage for TakCertificateMaterial.

Link copied to clipboard
interface TakPrefs

Reactive interface for TAK server settings.

Link copied to clipboard

The minimal seam org.meshtastic.core.service.MeshServiceOrchestrator needs onto the TAK server integration — folding TAKServerManager.isRunning and TAKMeshIntegration.start/stop (core:takserver) into one interface so a platform with no TAK support (e.g. wasmJs, where core:takserver's TLS listener is a permanent browser-sandbox impossibility) can supply a real no-op without core:service depending on core:takserver at all.

Link copied to clipboard

Interface for handling telemetry packets from the mesh, including battery notifications.

Link copied to clipboard

Interface for handling traceroute responses from the mesh.

Link copied to clipboard

Read-only provider of traceroute response state.

Link copied to clipboard

Repository interface for managing snapshots of traceroute results.

Link copied to clipboard
class TransparentModeController(radioConfigRepository: RadioConfigRepository, serviceRepository: ServiceRepository, adminController: AdminController, nodeManager: NodeManager, scope: CoroutineScope)

Tracks whether the connected node is in transparent mode (a raw LoRa modem for a host such as meshtasticd), what the user chose to do about it for this connection, and turns it off on request.

Link copied to clipboard
data class TransparentModeState(val active: Boolean = false, val noticeVisible: Boolean = false, val turnOff: TransparentModeTurnOff? = null)

What the app shows about transparent mode for the current connection.

Link copied to clipboard

Where the user's request to turn transparent mode off stands.

Link copied to clipboard

Machine-readable transport disconnect causes that need service/UI-specific handling.

Link copied to clipboard
interface UiPrefs

Reactive interface for general UI preferences.

Properties

Link copied to clipboard

How long a read addressed to another node waits: the 30 s UX deadline plus the two-minute late-reply grace.

Link copied to clipboard

The saved selection, parsed; null when nothing is selected.

Link copied to clipboard
const val SERVICE_NOTIFY_ID: Int = 101

Functions

Link copied to clipboard

Whether the user's preferences let a notification of category show, on every platform that dispatches records.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ClientNotification.notificationId(): Int

Stable platform-notification identity shared by posting and cancellation paths.

Link copied to clipboard
fun AdminResult<*>.routingErrorOrNull(): Int?

The routing error a failed RPC carries; null for success, a timeout and a lost link.

fun SendOutcome.routingErrorOrNull(): Int?

The routing error a failed send carries; null for success and for failures the mesh did not report.

Link copied to clipboard
suspend fun RadioSessionAuthority.runInSession(session: RadioSessionContext, block: suspend () -> Unit): Boolean

Runs block as a child of session's scope and returns true, or false when the session is closed or closes first. Teardown cancels block; the caller's cancellation cancels it too. A failure in block reaches the caller.

Link copied to clipboard

Converts the model position to the exact protobuf payload used by fixed-position admin commands.

Link copied to clipboard

The node-level part of these filters, for views that draw nodes without the map's filter sheet.

Link copied to clipboard
fun MessageHandle.toNodeRequest(): NodeRequest

Tracks MessageHandle.await as a NodeRequest.