Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class AndroidMarkersAndRoutesIo(appContext: Context) : MarkersAndRoutesIo

Android implementation of MarkersAndRoutesIo. Builds a zip on disk in the app's export/ folder and shares it via FileProvider; the file picker is registered against the Activity's ActivityResultRegistry so it survives configuration changes.

Link copied to clipboard
class AndroidOfflineMapsManager(appContext: Context, soundscapeServiceConnection: SoundscapeServiceConnection)

Session-scope facade over the offline-map manifest fetcher, file system index, and OfflineDownloader. Implements the surface area the shared NavGraph expects on iOS via OfflineMapManager: full list of manifest extracts, downloaded extracts as a FeatureCollection, current download state, and refresh / containing-query / start / cancel / delete operations.

Link copied to clipboard
sealed class DownloadState
Link copied to clipboard
class FirebaseAnalyticsImpl(context: Context) : Analytics
Link copied to clipboard

A helper object to save the application's Logcat output to a file.

Link copied to clipboard
class NetworkUtils(context: Context)
Link copied to clipboard
class NoOpAnalytics : Analytics
Link copied to clipboard
class OfflineDownloader(injectedFileDownloader: FileDownloader? = null)
Link copied to clipboard
Link copied to clipboard
object TestTags

Functions

Link copied to clipboard
fun createPlatformAnalytics(context: Context): Analytics
Link copied to clipboard

Delete the .geojson metadata sidecars in dir which have no extract next to them. Downloads used to write the sidecar before they started, and left it behind when they failed or were cancelled; those orphans are never listed, but they stay on the phone forever.

Link copied to clipboard
suspend fun downloadAndParseManifest(applicationContext: Context): FeatureCollection?
Link copied to clipboard
fun findExtracts(path: String): FeatureCollection?
Link copied to clipboard

Return the application locale if there is one, otherwise return the default system one

Link copied to clipboard
fun getMapApps(context: Context): List<MapApp>

Every installed app which handles geo: links, other than Soundscape itself, sorted by name. Needs the geo entry in the manifest or package visibility hides them all.

Link copied to clipboard
fun getMetadata(pmtilesPath: String): Feature?
Link copied to clipboard
fun goToAppSettings(context: Context)
Link copied to clipboard
fun openInMapApp(context: Context, app: MapApp, desc: LocationDescription)
Link copied to clipboard
fun shareLocation(context: Context, message: String, locationDescription: LocationDescription)
Link copied to clipboard
fun shareRoute(context: Context, route: RouteWithMarkers)
Link copied to clipboard
fun Address.toLocationDescription(name: String?): LocationDescription