computeDiskCacheDir

fun computeDiskCacheDir(applicationContext: Context, directory: String): File

Creates a subdirectory, under existing platform cache designated directory, that is used for caching data related to a specific usage context(images, http responses etc). The logic tries to use the external storage (sdcard) path but if not mounted, falls back on the internal storage.

Parameters

applicationContext

The Application context.

directory

Name of the directory to save cache files.