RequestReceipt

open class RequestReceipt

The RequestReceipt is an object vended by the ImageDownloader when starting a download request. It can be used to cancel active requests running on the ImageDownloader session. As a general rule, image download requests should be cancelled using the RequestReceipt instead of calling cancel directly on the request itself. The ImageDownloader is optimized to handle duplicate request scenarios as well as pending versus active downloads.

  • The download request created by the ImageDownloader.

    Declaration

    Swift

    public let request: DataRequest
  • The unique identifier for the image filters and completion handlers when duplicate requests are made.

    Declaration

    Swift

    public let receiptID: String