CatalogConfiguration (API Reference)
Class CatalogConfiguration
Using this class you can configure in the SDKOptions,
how the SDKNativeEngine should access, use and store the data for the desired catalog.
Using this class, you can access default catalogs on the HERE platform and also custom catalogs such as for self-hosted or BYOD (bring your own data) use cases.
For information on how the user can identify a catalog on the HERE platform, see DesiredCatalog
For further information about catalogs and related concepts see CatalogIdentifier.
Note: This API is only applicable for the Navigate license.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanA flag to indicate if the data for this catalog is allowed to be stored in persistent storage for use with offline maps.Expiration time in seconds for how long the catalog data is retained in the map cache before it is removed.The identifier for the desired catalog to be accessed on the HERE platform.Some catalogs may have additional modifications to their data contained in an entirely separate catalog, called the patch catalog. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CatalogConfigurationgetDefault(CatalogType catalogType) Gets the default catalog configuration for the specified catalog type.inthashCode()
-
Field Details
-
catalog
The identifier for the desired catalog to be accessed on the HERE platform. See
DesiredCatalog. -
patchHrn
Some catalogs may have additional modifications to their data contained in an entirely separate catalog, called the patch catalog. This field indicates the HERE Resource Name (HRN) for the patch catalog. When this field is present, the catalog's data as referenced by
catalogis merged with data from the patch catalog. If this field isnull, then incremental updates are disabled. -
cacheExpirationPeriod
Expiration time in seconds for how long the catalog data is retained in the map cache before it is removed. Cache path is specified by
SDKOptions.cachePath. If not set, the cache will be deleted on a Least Recently Used (LRU) basis. -
allowDownload
public boolean allowDownloadA flag to indicate if the data for this catalog is allowed to be stored in persistent storage for use with offline maps. The storage path is specified in
SDKOptions.persistentMapStoragePath. If set to false, the data is not stored in persistent storage and is only retained in the cache for a limited time (seecacheExpirationPeriod). Defaults totrue.
-
-
Constructor Details
-
CatalogConfiguration
Creates a new instance.
- Parameters:
catalog-The identifier for the desired catalog to be accessed on the HERE platform. See
DesiredCatalog.
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
getDefault
Gets the default catalog configuration for the specified catalog type. It uses the catalog version that was the latest at the time when the HERE SDK was built.
- Parameters:
catalogType-Catalog type
- Returns:
Instance of
CatalogConfiguration.
-