Protocols

The following protocols are available globally.

  • General logic responsible for downloading the file.

    See more

    Declaration

    Swift

    protocol DownloadableTask : AnyObject
  • The PostProcessing protocol is used to create post-processes that can be used after the file has been downloaded. For example, unzip .zip files or create image thumbnails.

    The implementation requirements for post-processing are as follows. For the correct operation, the object that is inherited from PostProcessing must be Value Types (struct). Under the supportedFileExtensions parameter, specify a list of file extensions over which post-processing can be performed. Use the prepare method to get the data you need to start post-processing. Describe the logic behind post-processing in the process method. Call onComplete, after the completion of post-processing.

    See more

    Declaration

    Swift

    public protocol PostProcessing
  • Configuration related to FileStorage.

    Used to create a custom configuration container.

    See more

    Declaration

    Swift

    public protocol FileStorageConfiguration
  • FileStorageManageable represent an implementation of File storage related functionality.

    Could be used as a blueprint for creating an object that behaves like a File Manager. See also FileWriting and FileReading protocol.

    See more

    Declaration

    Swift

    public protocol FileStorageManageable