![]() After the upload completes, this is the metadata returned by the server. The total number of bytes expected to be uploaded.Ī URI that can be used to continue this task via another call to putFile.īefore an upload completes, this is the metadata being sent to the server. The total number of bytes that have been transferred when this snapshot was taken. If the task failed, this will have the cause as an Exception. This value is populated once an upload is complete. This is a public unguessable URL that can be shared with other clients. This object is an immutable view of the task at the time the event occurred.Īn UploadTask.TaskSnapshot contains the following properties: PropertyĪ URL that can be used to download the object. Listeners are called with an UploadTask.TaskSnapshot object. OnFailureListener is called with an Exception instance. This can happen due to network timeouts, authorization failures, or if you cancel the task. This listener is called any time the upload has failed. This listener is called when the task has successfully completed. This listener is called any time the task is paused. ![]() This listener is called periodically as data is transferred and can be used to populate an upload/download indicator. You can add listeners to handle success, failure, progress, or pauses in your StorageActivity.java Monitor Upload Progress ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |