getAvailableUpdates

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.

Return

Cancelable operation that can be cancelled

Parameters

callback

Callback to receive the list of available updates


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.

Return

Cancelable operation that can be cancelled

Parameters

maxAllowedAgeDifferenceMinutes

Maximum age difference in minutes before update is recommended

callback

Callback to receive the list of available updates


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.

Return

Expected containing either the list of available updates or an error

Parameters

maxAllowedAgeDifferenceMinutes

Maximum age difference in minutes before update is recommended