TileHybridDataProviderFactory
Responsible for creating instances of DataProvider that is a composition of online and offline DataProvider for handling hybrid map tile requests.
This data provider prioritizes using offline data. If all tiles of interest are available in the NdsStore, it uses tiles from the offline data provider. Otherwise, it uses tiles from the online data provider. In the latter case, if internet connectivity is interrupted, it keeps retrying to fetch tiles from the online data provider (instead of switching to the offline data provider).
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Link copied to clipboard
fun createHybridDataProvider(ndsStore: NdsStore, context: Context, inMemoryCacheEnabled: Boolean = true): DataProvider
Creates an instance of DataProvider that handles hybrid map tile requests.