PSPDFRenderRequestCachePolicy

Objective-C

enum PSPDFRenderRequestCachePolicy {}

Swift

@frozen enum CachePolicy : Int

The render request cache policy controls if and how the request, once scheduled, access the cache.

  • The default policy that works best for the given platform and device.

    Declaration

    Objective-C

    PSPDFRenderRequestCachePolicyDefault = 0

    Swift

    case `default` = 0
  • The request will always trigger a rendering as it ignores data from the cache.

    Declaration

    Objective-C

    PSPDFRenderRequestCachePolicyReloadIgnoringCacheData

    Swift

    case reloadIgnoringCacheData = 1
  • The request will first check the cache for data and request a rendering if there was no cache hit for that request.

    Declaration

    Objective-C

    PSPDFRenderRequestCachePolicyReturnCacheDataElseLoad

    Swift

    case returnCacheDataElseLoad = 2
  • The request will check the cache for data and return nothing if the cache did not contain an image.

    Declaration

    Objective-C

    PSPDFRenderRequestCachePolicyReturnCacheDataDontLoad

    Swift

    case returnCacheDataDontLoad = 3