Example usage for Java com.google.api.client.googleapis.media MediaHttpUploader fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CONTENT_TYPE_HEADER Upload content length header. |
int | MINIMUM_CHUNK_SIZE Minimum number of bytes that can be uploaded to the server (set to 256KB). |
int | DEFAULT_CHUNK_SIZE Default maximum number of bytes that will be uploaded to the server in any single HTTP request (set to 10 MB). |
long | getNumBytesUploaded() Gets the total number of bytes the server received so far or 0 for direct uploads when the content length is not known. |
double | getProgress() Gets the upload progress denoting the percentage of bytes that have been uploaded, represented between 0.0 (0%) and 1.0 (100%). |
UploadState | getUploadState() Gets the current upload state of the uploader. |
MediaHttpUploader | setChunkSize(int chunkSize) Sets the maximum size of individual chunks that will get uploaded by single HTTP requests. |
MediaHttpUploader | setDirectUploadEnabled(boolean directUploadEnabled) Sets whether direct media upload is enabled or disabled. |
MediaHttpUploader | setProgressListener(MediaHttpUploaderProgressListener progressListener) Sets the progress listener to send progress notifications to or null for none. |