TilesetVersionManager

Manager for checking offline tileset version availability and update requirements. This interface provides functionality to check for available tileset versions and determine if downloaded tilesets need updates based on version comparison and age thresholds.

See also

for information about tileset version metadata

for update availability results

Types

Link copied to clipboard

Callback interface for receiving available tileset updates across all regions.

Link copied to clipboard

Callback interface for receiving tileset update availability results for a single region.

Link copied to clipboard

Callback interface for receiving available tileset versions.

Functions

Link copied to clipboard

Checks if a tileset update is available for the specified region. This is a convenience method that uses a default age threshold of 0 minutes, meaning any version difference will trigger an update recommendation.

abstract suspend fun getAvailableUpdate(regionId: String, maxAllowedAgeDifferenceMinutes: Long = 0): Expected<Throwable, TilesetUpdateAvailabilityResult>

Checks if a tileset update is available for the specified region based on age threshold.

abstract fun getAvailableUpdate(regionId: String, maxAllowedAgeDifferenceMinutes: Long, callback: TilesetVersionManager.TilesetUpdatesCallback): Cancelable

Checks if a tileset update is available for the specified region based on age threshold. The method compares the currently downloaded tileset version with the latest available version and determines if an update is needed based on:

Link copied to clipboard

Checks for available tileset updates across all downloaded regions. This is a convenience method that uses a default age threshold of 0 minutes, meaning any version difference will trigger an update recommendation.

abstract suspend fun getAvailableUpdates(maxAllowedAgeDifferenceMinutes: Long = 0): Expected<Throwable, List<TilesetUpdateAvailabilityResult.Available>>

Checks for available tileset updates across all downloaded regions based on age threshold.

abstract fun getAvailableUpdates(maxAllowedAgeDifferenceMinutes: Long, callback: TilesetVersionManager.AllTilesetsUpdatesCallback): Cancelable

Checks for available tileset updates across all downloaded regions based on age threshold. This method checks all downloaded regions and determines which ones have updates available based on version comparison and age thresholds. It compares the currently downloaded tileset versions with the latest available versions and determines if updates are needed.

Link copied to clipboard
abstract suspend fun getAvailableVersions(): Expected<Throwable, List<TilesetVersion>>

Retrieves the list of available tileset versions from the server.