Package-level declarations

Types

Link copied to clipboard
@Serializable
data class OfflineTerrainRegion(val south: Double, val west: Double, val north: Double, val east: Double, val maxZoom: Int, val hasRegionalDetail: Boolean, val tileCount: Long, val byteSize: Long)

What one downloaded offline-terrain region covers, persisted alongside its tiles as manifest.json.

Link copied to clipboard
class OfflineTerrainRepository(fileSystem: FileSystem, baseDir: Path)

Owns the one downloaded offline-terrain region: its manifest, and the TerrainTileStore holding its tiles.

Functions

Link copied to clipboard
actual fun terrainStorageDirectory(): Path

App-internal storage, so downloaded terrain is private to the app and removed with it.

expect fun terrainStorageDirectory(): Path

Where this platform's offline terrain (Mapterhorn tiles plus OfflineTerrainRegion's manifest) is kept.

actual fun terrainStorageDirectory(): Path

Alongside the desktop database and imported map layers, which already live in ~/.meshtastic.