UnbluDefaultFileDownloadHandler

public class UnbluDefaultFileDownloadHandler : NSObject, UnbluFileDownloadHandler
extension UnbluDefaultFileDownloadHandler: URLSessionDelegate

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])

URLSessionDelegate

  • Undocumented

    Declaration

    Swift

    public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)