DataSourceChangedListener

Used to inform the caller that the data source has changed. Implementing this interface allows the application to respond to change of a data source, such as switching from tile store to offline data sources due to missing navigation tiles.

To listen to the data source changes, implement this interface to create a listener, for instance:

val dataSourceChangedListener = DataSourceChangedListener { dataSource ->
// Implement the necessary functionality for handling the data source changes
}

Subsequently, add this listener using DataSourceChangedNotifier.addDataSourceChangedListener. To stop listening to the data source changes, remove the listener using DataSourceChangedNotifier.removeDataSourceChangedListener.

Important: This is a Public Preview API. It may be changed or removed at any time.

Functions

Link copied to clipboard
abstract fun onDataSourceChanged(dataSource: DataSource)

Called when the data source has changed.