Also: Google Play
services
public class UploadTask.TaskSnapshot extends SnapshotBase
Encapsulates state about the running UploadTask
Public Method Summary
long | |
StorageMetadata | |
long | |
Uri |
Inherited Method Summary
Public Methods
public long getBytesTransferred ()
Also:
Google Play services
Returns
- the total bytes uploaded so far.
public StorageMetadata getMetadata ()
Also:
Google Play services
Returns
- the metadata for the object. After uploading, this will return the resulting final Metadata which will include the upload URL.
public long getTotalByteCount ()
Also:
Google Play services
Returns
- The number of bytes to upload. Will return -1 if uploading from a stream.
public Uri getUploadSessionUri ()
Also:
Google Play services
Returns
- the session Uri, valid for approximately one week, which can be used to resume an
upload later by passing this value into
putFile(Uri, StorageMetadata, Uri)