Package-level declarations

Functionality for managing offline map data and caching.

Functionality for managing offline map data and caching.

Functionality for managing offline map data and caching.

Types

Link copied to clipboard
sealed interface DownloadProgress
Link copied to clipboard

Represents whether an OfflinePack is actively downloading or has completed downloading.

Link copied to clipboard
interface OfflineManager

An instance of this interface is a singleton that manages offline packs and ambient caching.

Link copied to clipboard
Link copied to clipboard
actual class OfflinePack
expect class OfflinePack

Represents a collection of resources necessary for viewing a region offline.

Link copied to clipboard
sealed interface OfflinePackDefinition

An object that defines a region required by an OfflinePack.

Functions

Link copied to clipboard
fun getOfflineManager(context: Context): OfflineManager

Acquire an instance of OfflineManager outside a Composition. For use in Composable code, see org.maplibre.compose.offline.rememberOfflineManager.

Acquire an instance of OfflineManager outside a Composition. For use in Composable code, see org.maplibre.compose.offline.rememberOfflineManager.

Link copied to clipboard
@Composable
actual fun rememberOfflineManager(): OfflineManager
@Composable
actual fun rememberOfflineManager(): OfflineManager
@Composable
expect fun rememberOfflineManager(): OfflineManager

Acquire an instance of OfflineManager.

Link copied to clipboard
@Composable
fun rememberOfflinePacksSource(offlinePacks: Set<OfflinePack>, options: GeoJsonOptions = GeoJsonOptions(), putExtraProperties: JsonObjectBuilder.(OfflinePack) -> Unit = {}): Source

Specialization of rememberGeoJsonSource that contains the list of OfflinePack as features. This allows you to implement a UI to manage offline packs directly on the map.