Protocols
The following protocols are available globally.
-
Customizable configuration.
See moreDeclaration
Swift
public protocol DMSwiftConfiguration
-
Download delegate.
See moreDeclaration
Swift
protocol DownloadDelegate : AnyObject
-
General logic responsible for downloading the file.
See moreDeclaration
Swift
protocol DownloadableTask : AnyObject
-
Undocumented
See moreDeclaration
Swift
protocol URLTestable
-
Undocumented
See moreDeclaration
Swift
protocol URLRequestTestable
-
Undocumented
See moreDeclaration
Swift
protocol URLSessionTestable
-
Undocumented
See moreDeclaration
Swift
protocol URLSessionTaskTestable
-
Download progress delegate.
See moreDeclaration
Swift
public protocol DownloaderProgressDelegate : AnyObject
-
Undocumented
See moreDeclaration
Swift
public protocol TaskProgressCounting
-
Undocumented
See moreDeclaration
Swift
public protocol FileDownloadProgressCounting : TaskProgressCounting
-
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
See morePostProcessing
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.Declaration
Swift
public protocol PostProcessing
-
Post-process delegate
See moreDeclaration
Swift
public protocol PostProcessDelegate : AnyObject
-
Declaration
Swift
public protocol FileStorageConfiguration
-
Represent file reading functionality that could be used within
See moreFileStorageManageable
Declaration
Swift
public protocol FileReading : FileStorageManageable
-
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 moreDeclaration
Swift
public protocol FileStorageManageable
-
Represent file writing functionality that could be used within
See moreFileStorageManageable
Declaration
Swift
public protocol FileWriting : FileStorageManageable