|  | <!DOCTYPE html> | 
|  | <html lang="en"> | 
|  | <head> | 
|  | <title>DownloadTaskDelegate Class Reference</title> | 
|  | <link rel="stylesheet" type="text/css" href="../../css/jazzy.css" /> | 
|  | <link rel="stylesheet" type="text/css" href="../../css/highlight.css" /> | 
|  | <meta charset='utf-8'> | 
|  | <script type="text/javascript"> | 
|  | window.jazzy = {'docset': false} | 
|  | if (typeof window.dash != 'undefined') { | 
|  | document.documentElement.className += ' dash' | 
|  | window.jazzy.docset = true | 
|  | } | 
|  | if (navigator.userAgent.match(/xcode/i)) { | 
|  | document.documentElement.className += ' xcode' | 
|  | window.jazzy.docset = true | 
|  | } | 
|  | </script> | 
|  | <script src="../../js/jquery.min.js" defer></script> | 
|  | <script src="../../js/jazzy.js" defer></script> | 
|  | </head> | 
|  | <body id="reference" class="Swift"> | 
|  | <a name="//apple_ref/swift/Class/DownloadTaskDelegate" class="dashAnchor"></a> | 
|  | <a title="DownloadTaskDelegate Class Reference"></a> | 
|  | <header> | 
|  | <div class="content-wrapper"> | 
|  | <p class="header-text"><a href="../../index.html"> Docs</a> (41% documented)</p> | 
|  | <p id="header-links"><a href=""><img id="header-icon" src="../../img/gh.png" height="16px" width="16px" />View on GitHub</a></p> | 
|  | </div> | 
|  | </header> | 
|  | <section id="valence"> | 
|  | <div class="content-wrapper"> | 
|  | <p id="hierarchial_navigation"> | 
|  | <a href="../../index.html" id="design_resources_link"> Reference</a> | 
|  | <img id="carat" src="../../img/carat.png" height="10px" width="6px" /> | 
|  | DownloadTaskDelegate Class Reference | 
|  | </p> | 
|  | </div> | 
|  | </section> | 
|  | <div class="content-wrapper"> | 
|  | <nav class="book-parts"> | 
|  | <ul class="nav-parts"> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Classes.html">Classes</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Classes/BaseClient.html">BaseClient</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Classes/EngineClient.html">EngineClient</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Classes/EventClient.html">EventClient</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Classes/Manager.html">Manager</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Classes/Request.html">Request</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Global Variables.html">Global Variables</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Global Variables.html#/s:v15PredictionIOSDK20AlamofireErrorDomainSS">AlamofireErrorDomain</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Enums.html">Enums</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Enums.html#/s:O15PredictionIOSDK6Method">Method</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Enums/ParameterEncoding.html">ParameterEncoding</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Extensions.html">Extensions</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/EventClient.html">EventClient</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/Manager.html">Manager</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/NSURL.html">NSURL</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/NSURLComponents.html">NSURLComponents</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/NSURLRequest.html">NSURLRequest</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/Request.html">Request</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Extensions/String.html">String</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Functions.html">Functions</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK8downloadFTPS_21URLRequestConvertible_FTCSo5NSURLCSo17NSHTTPURLResponse_S1__CS_7Request">download(_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK8downloadFTOS_6MethodPS_20URLStringConvertible_FTCSo5NSURLCSo17NSHTTPURLResponse_S2__CS_7Request">download(_:_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK8downloadFT10resumeDataCSo6NSDataFTCSo5NSURLCSo17NSHTTPURLResponse_S1__CS_7Request">download(resumeData:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK7requestFPS_21URLRequestConvertible_CS_7Request">request(_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK7requestFTOS_6MethodPS_20URLStringConvertible_10parametersGSqGVSs10DictionarySSPSs9AnyObject___8encodingOS_17ParameterEncoding_CS_7Request">request(_:_:parameters:encoding:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTPS_21URLRequestConvertible_CSo6NSData_CS_7Request">upload(_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTPS_21URLRequestConvertible_CSo13NSInputStream_CS_7Request">upload(_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTPS_21URLRequestConvertible_CSo5NSURL_CS_7Request">upload(_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTOS_6MethodPS_20URLStringConvertible_CSo13NSInputStream_CS_7Request">upload(_:_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTOS_6MethodPS_20URLStringConvertible_CSo5NSURL_CS_7Request">upload(_:_:_:)</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Functions.html#/s:F15PredictionIOSDK6uploadFTOS_6MethodPS_20URLStringConvertible_CSo6NSData_CS_7Request">upload(_:_:_:)</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Protocols.html">Protocols</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Protocols/URLRequestConvertible.html">URLRequestConvertible</a> | 
|  | </li> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Protocols/URLStringConvertible.html">URLStringConvertible</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | <li class="part-name tasks"> | 
|  | <a href="../../Structs.html">Structs</a> | 
|  | <ul class="nav-chapters"> | 
|  | <li class="nav-chapter"> | 
|  | <a href="../../Structs/Event.html">Event</a> | 
|  | </li> | 
|  | </ul> | 
|  | </li> | 
|  | </ul> | 
|  | </nav> | 
|  | <div class="pixel-line"></div> | 
|  | <div class="rubber-band-gap"></div> | 
|  | <article class="chapter"> | 
|  | <a name="/"></a> | 
|  | <h1 class="chapter-name">DownloadTaskDelegate</h1> | 
|  | <section> | 
|  | <section class="section"> | 
|  | <p class="para">Undocumented</p> | 
|  | </section> | 
|  | <section class="section task-group-section"> | 
|  | <div class="task-group"> | 
|  | <div class="task-name-container"> | 
|  |  | 
|  | <a name="/Unnamed"></a> | 
|  |  | 
|  | </div> | 
|  | <ul class="task-group-list"> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate12downloadTaskGSQCSo24NSURLSessionDownloadTask_"> | 
|  | <a name="//apple_ref/swift/Property/downloadTask" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate12downloadTaskGSQCSo24NSURLSessionDownloadTask_">downloadTask</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate16downloadProgressGSqFTVSs5Int64S2_S2__T__"> | 
|  | <a name="//apple_ref/swift/Property/downloadProgress" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate16downloadProgressGSqFTVSs5Int64S2_S2__T__">downloadProgress</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate10resumeDataGSqCSo6NSData_"> | 
|  | <a name="//apple_ref/swift/Property/resumeData" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate10resumeDataGSqCSo6NSData_">resumeData</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate4dataGSqCSo6NSData_"> | 
|  | <a name="//apple_ref/swift/Property/data" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate4dataGSqCSo6NSData_">data</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate37downloadTaskDidFinishDownloadingToURLGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_CSo5NSURL_S4__"> | 
|  | <a name="//apple_ref/swift/Property/downloadTaskDidFinishDownloadingToURL" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate37downloadTaskDidFinishDownloadingToURLGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_CSo5NSURL_S4__">downloadTaskDidFinishDownloadingToURL</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate24downloadTaskDidWriteDataGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_VSs5Int64S4_S4__T__"> | 
|  | <a name="//apple_ref/swift/Property/downloadTaskDidWriteData" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate24downloadTaskDidWriteDataGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_VSs5Int64S4_S4__T__">downloadTaskDidWriteData</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate29downloadTaskDidResumeAtOffsetGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_VSs5Int64S4__T__"> | 
|  | <a name="//apple_ref/swift/Property/downloadTaskDidResumeAtOffset" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:vCC15PredictionIOSDK7Request20DownloadTaskDelegate29downloadTaskDidResumeAtOffsetGSqFTGSQCSo12NSURLSession_GSQCSo24NSURLSessionDownloadTask_VSs5Int64S4__T__">downloadTaskDidResumeAtOffset</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | </ul> | 
|  | </div> | 
|  | <div class="task-group"> | 
|  | <div class="task-name-container"> | 
|  |  | 
|  | <a name="/NSURLSessionDownloadDelegate"></a> | 
|  | <a name="//apple_ref/swift/Section/NSURLSessionDownloadDelegate" class="dashAnchor"></a> | 
|  | <a href="#/NSURLSessionDownloadDelegate"> | 
|  | <h3 class="section-name">NSURLSessionDownloadDelegate</h3> | 
|  | </a> | 
|  |  | 
|  | </div> | 
|  | <ul class="task-group-list"> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTCSo12NSURLSession12downloadTaskCSo24NSURLSessionDownloadTask25didFinishDownloadingToURLCSo5NSURL_T_"> | 
|  | <a name="//apple_ref/swift/Method/URLSession(_:downloadTask:didFinishDownloadingToURL:)" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTCSo12NSURLSession12downloadTaskCSo24NSURLSessionDownloadTask25didFinishDownloadingToURLCSo5NSURL_T_">URLSession(_:downloadTask:didFinishDownloadingToURL:)</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTGSQCSo12NSURLSession_12downloadTaskGSQCSo24NSURLSessionDownloadTask_12didWriteDataVSs5Int6417totalBytesWrittenS4_25totalBytesExpectedToWriteS4__T_"> | 
|  | <a name="//apple_ref/swift/Method/URLSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTGSQCSo12NSURLSession_12downloadTaskGSQCSo24NSURLSessionDownloadTask_12didWriteDataVSs5Int6417totalBytesWrittenS4_25totalBytesExpectedToWriteS4__T_">URLSession(_:downloadTask:didWriteData:totalBytesWritten:totalBytesExpectedToWrite:)</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | <li class="item symbol"> | 
|  | <div class="task-group-term"> | 
|  | <code> | 
|  | <a name="/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTGSQCSo12NSURLSession_12downloadTaskGSQCSo24NSURLSessionDownloadTask_17didResumeAtOffsetVSs5Int6418expectedTotalBytesS4__T_"> | 
|  | <a name="//apple_ref/swift/Method/URLSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:)" class="dashAnchor"></a> | 
|  | <a class="x-instance-method Swift" href="#/s:FCC15PredictionIOSDK7Request20DownloadTaskDelegate10URLSessionFS1_FTGSQCSo12NSURLSession_12downloadTaskGSQCSo24NSURLSessionDownloadTask_17didResumeAtOffsetVSs5Int6418expectedTotalBytesS4__T_">URLSession(_:downloadTask:didResumeAtOffset:expectedTotalBytes:)</a> | 
|  | </code> | 
|  | </div> | 
|  | <div class="height-container"> | 
|  | <div class="pointy-thing-container"></div> | 
|  | <section class="section instance-method"> | 
|  | <div class="pointy-thing"></div> | 
|  | <div class="abstract"> | 
|  | <p class="para">Undocumented</p> | 
|  | </div> | 
|  | </section> | 
|  | </div> | 
|  | </li> | 
|  | </ul> | 
|  | </div> | 
|  | </section> | 
|  | </section> | 
|  | <section id="footer"> | 
|  | <p class="copyright">© 2015 <a class="link" href="" target="_blank" rel="external"></a>. All rights reserved. (Last updated: 2015-02-24)</p> | 
|  | <p class="copyright">Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.1.1</a>, a <a class="link" href="http://realm.io" target="_blank" rel="external">Realm</a> project.</p> | 
|  | </section> | 
|  | </article> | 
|  | </div> | 
|  | </body> | 
|  | </div> | 
|  | </html> |