RasterDataSourceCacheConfiguration class

Configuration of a local data cache.

Constructors

RasterDataSourceCacheConfiguration(String path, int diskSize)
Constructs a Cache object from the provided path and cache size.
RasterDataSourceCacheConfiguration.withDefaults(String path)
Constructs a Cache object from the provided path and a default cache size of 32 MiB.

Properties

diskSize ↔ int
The maximum size to use on disk for the cache, in bytes. Default is 32 MiB. This cache is independent from the map cache as defined via SDKOptions. Its size is only limited by the total device storage capacity.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
path ↔ String
The path to the directory to use for the cache. By default, the map gets initialized with a data path which can be fetched from SDKOptions.cachePath. The cache will be relative to this path, unless an absolute path is provided. The cache can be stored in an internal/external storage as long as the app has read/write permissions. Empty string means the data path will be used for caching. If the provided path, either as absolute path or as relative path is invalid, then caching will be disabled. There is no contraint regarding the existence of the path. If the path does not exist but is valid, it will be created.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited