NdsStore
Creates an instance of NdsStore with the default NdsStoreUpdateConfiguration. NdsStoreUpdateConfiguration.apiKey is set to the given apiKey. The paths NdsStoreUpdateConfiguration.updateStoragePath and NdsStoreUpdateConfiguration.persistentStoragePath are taken from the given context. The paths are inside the application's external files directory, or the files directory if the external files directory is not available.
Return
An instance of NdsStore that is configured based on the provided parameters.
Parameters
The Context used for creating the NdsStore.
The local path to the NDS store directory. That is the directory that contains the file: ROOT.NDS.
API key required for authentication to the NDS Store update service and the traffic cloud service. Providing a valid API key is essential to enable traffic data in the NDS Store. Without a valid API key, access to traffic data will be restricted, and the traffic information will not be available in the data store.
The country code in the ISO 3166-1 alpha-3 format whose view on disputed areas should be used. Defaults to DEFAULT_GEOPOLITICAL_VIEW which is the unified international geopolitical view. The default will also be used if the given geopolitical view is not available.
A lambda function that allows for additional configuration of the NdsStoreConfiguration before the store is created. Defaults to an empty lambda.
Throws
if a configuration field is invalid.