How to get notified when the upload is complete while using TransferManager Class?

左心房为你撑大大i 提交于 2020-02-07 08:27:36

问题


I am using TransferManager to upload a video. As TransferManager is asynchronous, How can i get notified when the upload is successfully completed?


回答1:


Using TransferManager for uploading returns a Upload object, which is a subclass of Transfer. This object has methods for polling for status (isDone, getProgress) or you can also register a ProgressListener to receive events as the transfer is processed.



来源:https://stackoverflow.com/questions/13577384/how-to-get-notified-when-the-upload-is-complete-while-using-transfermanager-clas

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!