问题
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