|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
MediaHttpUploaderProgressListener
@Deprecated public interface MediaHttpUploaderProgressListener
An interface for receiving progress notifications for uploads.
Sample usage:
public static class MyProgressListener implements MediaHttpUploaderProgressListener {
public void progressChanged(MediaHttpUploader uploader) throws IOException {
switch (uploader.getUploadState()) {
case INITIATION_STARTED:
System.out.println("Initiation Started");
break;
case INITIATION_COMPLETE:
System.out.println("Initiation Completed");
break;
case MEDIA_IN_PROGRESS:
System.out.println("Upload in progress");
System.out.println("Upload percentage: " + uploader.getProgress());
break;
case MEDIA_COMPLETE:
System.out.println("Upload Completed!");
break;
}
}
}
| Method Summary | |
|---|---|
void |
progressChanged(MediaHttpUploader uploader)
Deprecated. Called to notify that progress has been changed. |
| Method Detail |
|---|
void progressChanged(MediaHttpUploader uploader)
throws IOException
This method is called once before and after the initiation request. For media uploads it is called multiple times depending on how many chunks are uploaded. Once the upload completes it is called one final time.
uploader - Media HTTP uploader
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||