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