NdsStoreUpdaterConfiguration

Configuration of updates of the NdsStoreUpdater.

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

Constructors

Link copied to clipboard
constructor(updateStoragePath: File, persistentStoragePath: File, updateServerUri: Uri? = null, updateServerApiKey: String? = null, locale: Locale = DEFAULT_LOCALE, mapDiskUsageQuota: Memory? = null)

Constructs a NdsStoreUpdaterConfiguration object with the given parameters.

constructor(updateStoragePath: File, persistentStoragePath: File, updateServerUri: Uri? = null, updateServerApiKey: String? = null, locale: Locale = DEFAULT_LOCALE, automaticUpdates: AutomaticNdsStoreUpdaterConfiguration? = null, mapDiskUsageQuota: Memory? = null)

Constructs a NdsStoreUpdaterConfiguration object with the given parameters.

Types

Link copied to clipboard
object Companion

Represents default values for NdsStoreUpdaterConfiguration constructor.

Properties

Link copied to clipboard

Configuration for automatic map operations.

Link copied to clipboard

The locale whose language will be used for names of map regions in region graph. If the map does not support the language, the best matched language in the map will be used.

Link copied to clipboard

The maximum disk space to use by the NDS map. If not specified, the NDS map size is only limited by available disk space.

Link copied to clipboard

The path to the persistent directory for map updates. For some functionality (e.g., recovery from unexpected failures) data may have to be persisted at this location.

Link copied to clipboard

The API key used for requests to the map updates server that was specified in updateServerUri. If not specified, the key parameter will not be present in requests.

Link copied to clipboard

The URI of the server to download updates from. Defaults to the TomTom production update server.

Link copied to clipboard

The local path to the update packages directory. The directory provided must be writable. After a successful update of an update region, all update files for that update region are deleted.

Functions

Link copied to clipboard
fun copy(updateStoragePath: File = this.updateStoragePath, persistentStoragePath: File = this.persistentStoragePath, updateServerUri: Uri? = this.updateServerUri, updateServerApiKey: String? = this.updateServerApiKey, locale: Locale = this.locale, automaticUpdates: AutomaticNdsStoreUpdaterConfiguration? = this.automaticUpdates, mapDiskUsageQuota: Memory? = this.mapDiskUsageQuota): NdsStoreUpdaterConfiguration

Returns a copy calling the NdsStoreUpdaterConfiguration object with possibilities to override every properties.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String