UnbluPreviewFileDownloadHandler
class UnbluPreviewFileDownloadHandler
This class handles file downloads in the Unblu SDK and immediately previews the downloaded file instead of saving it to disk.
-
Called when a request is made to download a file, e.g. in a conversation.
Declaration
Swift
func downloadFile(atUrl url: URL, cookies: [HTTPCookie], token: String)Parameters
cookiesAn array of
HTTPCookieobjects representing the Cookies which are needed for the file download.tokenThe OAuth 2.0 token string will be added to the http request header “Authorization”.
-
Called when a request is made to download a file, e.g. in a conversation.
Declaration
Swift
func downloadFile(atUrl url: URL, cookies: [HTTPCookie])Parameters
cookiesAn array of
HTTPCookieobjects representing the Cookies which are needed for the file download.