getCacheQuota

fun getCacheQuota(applicationContext: Context, diskCacheDir: File): Long?

Returns the recommended amount of maximum disk space that can be used by the application to perform the caching logic.

Return

The number of bytes that can be used on the disk.

Note that the this value must be computed by executing computeDiskCacheDir function.

Parameters

applicationContext

The Application context.

diskCacheDir

directory of the cache files