invalidateAmbientCache

Forces re-validation of the ambient cache.

Forces MapLibre Native to revalidate resources stored in the ambient cache with the tile server before using them, making sure they are the latest version. This is more efficient than cleaning the cache because if the resource is considered valid after the server lookup, it will not get downloaded again.

Resources overlapping with offline regions will not be affected by this call.

Parameters

callback

the callback to be invoked when the ambient cache was invalidated or when the operation erred.