DataSourceChangedNotifier
Interface for the notification of changes in the data source. It allows the subscription to data source changes and enables reaction to them.
The DataSourceChangedNotifier instance provided by the com.tomtom.sdk.datamanagement.hybridnavigationdata.HybridNavigationDataStore is tied to the lifecycle of the data store. Once the data store is closed, the DataSourceChangedNotifier becomes inactive and should no longer be used, as invoking its methods will result in an IllegalStateException.
Important: This is a Public Preview API. It may be changed or removed at any time.
Properties
The active data source. Listeners subscribed through addDataSourceChangedListener are notified each time this value changes.
Functions
Adds a DataSourceChangedListener. The listener is notified of new DataSource each time an active data source changed.
Removes a previously added DataSourceChangedListener.