copy

fun copy(cacheMemoryMaxSize: Memory = this.cacheMemoryMaxSize, cacheStorageConfiguration: CacheStorageConfiguration? = this.cacheStorageConfiguration): CachingConfiguration

Creates a copy of this CachingConfiguration object with optional parameter overrides.

Parameters

cacheMemoryMaxSize

Size limit for in-memory tile store, defaults to the current value.

cacheStorageConfiguration

Persistent cache storage configuration, defaults to the current value.

See also


fun copy(cacheMemoryMaxSize: Memory = this.cacheMemoryMaxSize, cacheStorageConfiguration: CacheStorageConfiguration? = this.cacheStorageConfiguration, tileRefreshPeriod: Duration = DEFAULT_TILE_REFRESH_PERIOD): CachingConfiguration

Creates a copy of this CachingConfiguration object with optional parameter overrides. Important: This is a Public Preview API. It may be changed or removed at any time.

Parameters

cacheMemoryMaxSize

Size limit for the in-memory tile store, defaults to the current value.

cacheStorageConfiguration

Persistent cache storage configuration, defaults to the current value.

tileRefreshPeriod

The period after which a downloaded tile is considered stale and triggers an automatic refresh when accessed. Defaults to the current value.

See also

for more details. WARNING: This parameter has effect only with the NdsLiveFeature feature toggle enabled.