Type Aliases

The following type aliases are available globally.

  • Transformer method which will be used in to provide a Filter.

    Declaration

    Swift

    public typealias Transformer = (CIImage) -> CIImage?
  • It represents a task of retrieving image. You can call cancel on it to stop the process.

    Declaration

    Swift

    public typealias RetrieveImageDiskTask = DispatchWorkItem
  • Progress update block of prefetcher.

    • skippedResources: An array of resources that are already cached before the prefetching starting.
    • failedResources: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all.
    • completedResources: An array of resources that are downloaded and cached successfully.

    Declaration

    Swift

    public typealias PrefetcherProgressBlock = ((_ skippedResources: [Resource], _ failedResources: [Resource], _ completedResources: [Resource]) -> Void)
  • Completion block of prefetcher.

    • skippedResources: An array of resources that are already cached before the prefetching starting.
    • failedResources: An array of resources that fail to be downloaded. It could because of being cancelled while downloading, encountered an error when downloading or the download not being started at all.
    • completedResources: An array of resources that are downloaded and cached successfully.

    Declaration

    Swift

    public typealias PrefetcherCompletionHandler = ((_ skippedResources: [Resource], _ failedResources: [Resource], _ completedResources: [Resource]) -> Void)