Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 577 Bytes

Progress.md

File metadata and controls

25 lines (18 loc) · 577 Bytes

Progress

Return progress when download or upload.

Download Progress

HTTPBinNetwork.download(HTTPBinDownLoadRequest(), progressClosure: { (progress) in
    debugPrint(progress.currentProgress) //0~1
    debugPrint(progress.currentProgressString) //0%~100%
}) { (resposne) in
                    
}

Upload Progress

HTTPBinNetwork.upload(uploadRequest, progressClosure: { (progress) in
    debugPrint(progress.currentProgress) //0~1
    debugPrint(progress.currentProgressString) //0%~100%
}) { (response) in
                        
}