customDataProvidersFactoryFunction
A function that can be called to obtain a list of DataProvider, that will then be used as an alternative source of MapDisplay tiles.
The factory returns a list of new instances of DataProvider each time it is called.
This should be set before instantiating any com.tomtom.sdk.map.display.ui.MapView or com.tomtom.sdk.map.display.ui.MapFragment objects.
Example usage:
TomTomMapConfig.customDataProvidersFactoryFunction = {
listOf(TileOfflineDataProviderFactory.createOfflineDataProvider(ndsStore))
}
Content copied to clipboard