UnbluDefaultFileDownloadHandler
class UnbluDefaultFileDownloadHandler
- 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
UnbluFileDownloaderprotocol.
-
Called by the CoreSDK when a request is made to download a file. It uses the cookies provided along with the
URLRequestto execute the file downloaded. Once completed it will report back to the CoreSDK.with Authorization header
Declaration
Swift
func downloadFile(atUrl url: URL, cookies: [HTTPCookie], token: String) -
with cookies
Declaration
Swift
func downloadFile(atUrl url: URL, cookies: [HTTPCookie])