clearAmbientCache

open fun clearAmbientCache(@NonNull callback: AmbientCacheClearingCallback, @NonNull filterOptions: TileStoreAmbientCacheFilterOptions)

Clears the ambient cache data. Ambient cache data is anything not associated with an offline region or a stylepack, including predictively cached data. Use to quickly clear data e.g. for a system update. Note: Do not use this method to clear cache data unless strictly necessary as previously cached data will need to be re-downloaded, leading to increased network usage. If you want general control of the size of the Tile Store @see DiskQuota. This function is blocking the Tile Store until completed.

Parameters

callback

A callback that will be invoked with the result of the cache clearing action.

filterOptions

Filters specifying what ambient cache will be cleared


Clears the ambient cache data Equivalent to the other clearAmbientCache() overload with the filters set to include all ambient cache