Package-level declarations

Types

Link copied to clipboard
interface Analytics
Link copied to clipboard
sealed class DownloadState
Link copied to clipboard
class FirebaseAnalyticsImpl @Inject constructor(context: Context)
Link copied to clipboard
@DaggerGenerated
@Generated(value = "dagger.internal.codegen.ComponentProcessor", comments = "https://dagger.dev")
class FirebaseAnalyticsImpl_Factory : Factory<T>
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 @Inject constructor : Analytics
Link copied to clipboard
@DaggerGenerated
@Generated(value = "dagger.internal.codegen.ComponentProcessor", comments = "https://dagger.dev")
class NoOpAnalytics_Factory : Factory<T>
@DaggerGenerated
@Generated(value = "dagger.internal.codegen.ComponentProcessor", comments = "https://dagger.dev")
class NoOpAnalytics_Factory : Factory<T>
@DaggerGenerated
@Generated(value = "dagger.internal.codegen.ComponentProcessor", comments = "https://dagger.dev")
class NoOpAnalytics_Factory : Factory<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object TestTags

Properties

Link copied to clipboard
val supportedLanguages: <Error class: unknown class>

All languages supported by the app. This is the single source of truth used by both the onboarding language picker and the language mismatch detection.

Functions

Link copied to clipboard
Link copied to clipboard
fun createPlatformAnalytics(context: Context): <Error class: unknown class>
fun createPlatformAnalytics(context: Context): <Error class: unknown class>
fun createPlatformAnalytics(context: Context): <Error class: unknown class>
Link copied to clipboard
fun Feature.deferredToLocationDescription(source: LocationSource, alternateLocation: LngLatAlt = LngLatAlt(), featureName: TextForFeature? = null): LocationDescription
Link copied to clipboard
suspend fun downloadAndParseManifest(applicationContext: Context): FeatureCollection?
Link copied to clipboard
fun extractAssets(applicationContext: Context, assetDir: String, destinationDir: String): Boolean

This function extracts assets from the APK into the app's files directory so that they can be more easily used e.g. we can pass a file: URI to maplibre pointing at the files directory but not into the APK assets directly. There's obviously a storage cost associated with this, so it should only be used when absolutely necessary.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun String.fuzzyCompare(haystackString: String, needleCanBeShorter: Boolean): Double

fuzzyCompare is based on Damerau-Levenshtein distance. It return a score which is the ratio of the distance to the length of the strings. However, it also allows for the search string to be shorter than the haystack string and will give a slightly better score to strings that are naturally the same length.

Link copied to clipboard

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

Link copied to clipboard

Check if the phone's language differs from the app's configured language and is supported. Returns the matching Language if the phone language is supported but different from the app language, or null if they match or the phone language is not supported.

Link copied to clipboard
fun getMetadata(pmtilesPath: String): Feature?
Link copied to clipboard
Link copied to clipboard

Although the formatting of the address is not hugely time consuming, it adds up and so in Places Nearby the processing is deferred to the point at which the location information is displayed. The display uses a LazyColumn so even if there are hundreds of items in the list only the ones appearing on screen will need to call process.

Link copied to clipboard
fun processMaps(applicationContext: Context)
Link copied to clipboard