UnbluDefaultFileDownloadHandler

public class UnbluDefaultFileDownloadHandler : NSObject, UnbluFileDownloadHandlerWithAuthorizationToken

The default file downloader provided by Unblu. Use this when configuring the UnbluCoreSDK unless you want to provide your own file downloader. In that case, provide a file conforming to the UnbluFileDownloader protocol.

  • Called by the CoreSDK when a request is made to download a file. It uses the cookies provided along with the URLRequest to execute the file downloaded. Once completed it will report back to the CoreSDK.

    Declaration

    Swift

    public func downloadFile(atUrl url: URL, cookies: [HTTPCookie], token: String)
  • with cookies

    Declaration

    Swift

    public func downloadFile(atUrl url: URL, cookies: [HTTPCookie])