DownloadDestination

public enum DownloadDestination

Download destination.

  • A directory inside the application’s Documents directory. Root of Documents if directoryName is nil.

    Declaration

    Swift

    case document(directoryName: String?)
  • tmp

    Temporary directory.

    Declaration

    Swift

    case tmp
  • Platform gallery (photos app), in an optional album named albumName. Album will be created if it doesn’t exists.

    Using this enum will request authorization to access to the PHPhotoLibrary. This request will prompt a Dialog to the user. If the user refuses access once, this Dialog won’t be displayed anymore, the only way to change authorization anymore will be to go to the phone settings. If authorization is not given, medias won’t be added to the gallery at all.

    Declaration

    Swift

    case mediaGallery(albumName: String?)
  • Directory where to download the resources.

    Declaration

    Swift

    case directory(path: String)