OfflineRepository

Manages WorkManager operations for offline map tasks, including job creation, queuing, progress tracking, and cleanup. Provides utilities to handle serialization of jobs, manage notifications, and observe job states for preplanned and onDemand map areas.

Since

200.8.0

Properties

Link copied to clipboard

The portal item information for web maps that have downloaded map areas.

Functions

Link copied to clipboard

Initializes the offline map repository by loading existing offline map infos from disk.

Link copied to clipboard

Removes all downloads for all offline maps from the disk and clears offline map infos.

Link copied to clipboard
fun removeDownloads(context: Context, offlineMapInfo: OfflineMapInfo)

Removes all downloads for a specific web map's OfflineMapInfo. Deletes the corresponding directory and removes the info from the list.