Download Object

The following SDK methods will allow you to download the object.

Download an Object (Completion Callback)

This SDK method will allow you to download the object, without any progress indicators.

Parameters Used

Parameter Name Definition
fromCache
  • An optional parameter. To be used to specify whether this file has to be retrieved from the cache or not.
  • Default Value: false.
    
copy
objectInstance.download( fromCache : true ) { result in switch result { case .success( let url ) : do { let data = Data(contentsOf : url) DispatchQueue.main.sync { self.imageView.image = UIImage(date: data) } } catch { print("Error : \( error )") } case .error( let error ) : print("Error : \( error )") } }

Download an Object (With Progress)

This SDK method will allow you to download the object with progress indicators.

Parameters Used

Parameter Name Definition
fromCache
  • An optional parameter. To be used to specify whether this file has to be retrieved from the cache or not.
  • Default Value: false.
fileRefId A unique ID to refer to the file that is being uploaded.
fileUploadDelegate This is a protocol that needs to be confirmed. the Upload delegate object is essential to track the status of the object upload.
    
copy
objectInstance.download( fromCache : true, fileRefId : "{file_ref_id}", fileDownloadDelegate : self )

Last Updated 2025-07-08 15:25:59 +0530 +0530