public class UploadInfo extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<UploadInfo> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Modifier and Type | Method and Description |
|---|---|
int |
describeContents() |
long |
getElapsedTime()
Gets upload task's elapsed time in milliseconds.
|
String |
getElapsedTimeString()
Gets the elapsed time as a string, expressed in seconds if the value is
< 60,
or expressed in minutes:seconds if the value is >= 60. |
ArrayList<String> |
getFilesLeft()
Gets the list of all the files left to be uploaded.
|
Integer |
getNotificationID()
Gets the notification ID.
|
int |
getNumberOfRetries()
Gets the number of the retries that has been made during the upload process.
|
int |
getProgressPercent()
Gets the upload progress in percent (from 0 to 100).
|
long |
getStartTime()
Gets upload task's start timestamp in milliseconds.
|
ArrayList<String> |
getSuccessfullyUploadedFiles()
Gets the list of the successfully uploaded files.
|
long |
getTotalBytes()
Gets upload task's total bytes.
|
int |
getTotalFiles()
Gets the total number of files added to the upload request.
|
long |
getUploadedBytes()
Gets the uploaded bytes.
|
String |
getUploadId()
Returns the Upload ID.
|
double |
getUploadRate()
Gets the average upload rate in Kbit/s.
|
String |
getUploadRateString()
Returns a string representation of the upload rate, expressed in the most convenient unit of
measurement (Mbit/s if the value is
>= 1024, B/s if the value is < 1, otherwise Kbit/s) |
void |
writeToParcel(Parcel parcel,
int arg1) |
public static final Parcelable.Creator<UploadInfo> CREATOR
public void writeToParcel(Parcel parcel, int arg1)
writeToParcel in interface Parcelablepublic int describeContents()
describeContents in interface Parcelablepublic String getUploadId()
public long getStartTime()
public long getElapsedTime()
public String getElapsedTimeString()
< 60,
or expressed in minutes:seconds if the value is >= 60.public double getUploadRate()
public String getUploadRateString()
>= 1024, B/s if the value is < 1, otherwise Kbit/s)public ArrayList<String> getSuccessfullyUploadedFiles()
public ArrayList<String> getFilesLeft()
public long getUploadedBytes()
public long getTotalBytes()
public int getProgressPercent()
public int getNumberOfRetries()
public int getTotalFiles()
public Integer getNotificationID()