clearCaches

Clears pageBitmap memory cache to free memory.


fun clearCaches(context: Context, clearDiskCache: Boolean)

Deprecated

v2024.2: Will be removed in a future release.

Replace with

import com.pspdfkit.PSPDFKit.clearCaches
clearCaches()

Clears pageBitmap memory cache to free memory.

Parameters

context

Application context.

clearDiskCache

Clear disk cache as well.