CacheDirectory

sealed class CacheDirectory

Configuration for where to cache vehicle details for offline usage.

Vehicle details are stored in a JSON file within the specified cache directory, if any. Expired details are automatically cleaned up to manage storage efficiently.

Inheritors

Types

Link copied to clipboard

Use the default directory as specified by the system for storing vehicle details.

Link copied to clipboard

Specify no directory to use; vehicle details will not be cached.

Link copied to clipboard
class WriteableDirectory(val cacheDirectory: File) : CacheDirectory

Provide a custom location to store vehicle details. The specified directory must be writable; otherwise, an IllegalArgumentException is thrown.