-
public interface UploadListenerCollection of callbacks to get info about video uploads
-
-
Method Summary
Modifier and Type Method Description abstract UnitonUploadError(UploadError error, String videoId)Called when video uplaod fails abstract UnitonUploadDone(String videoId)Called when video upload is finished abstract UnitonUploadStarted(String uploadId, String videoId)Called when video upload starts abstract UnitonProgressUpdated(Integer percentage, String videoId, PauseState pauseState)Called when upload progress changes abstract UnitonUploadCancelled(String videoId)Called when upload gets cancelled -
-
Method Detail
-
onUploadError
abstract Unit onUploadError(UploadError error, String videoId)
Called when video uplaod fails
- Parameters:
videoId- ID of video failed uploading
-
onUploadDone
abstract Unit onUploadDone(String videoId)
Called when video upload is finished
- Parameters:
videoId- ID of video that is done uploading
-
onUploadStarted
abstract Unit onUploadStarted(String uploadId, String videoId)
Called when video upload starts
- Parameters:
uploadId- ID of the upload that can be used to cancel the uploadvideoId- ID of video that is being uploaded
-
onProgressUpdated
abstract Unit onProgressUpdated(Integer percentage, String videoId, PauseState pauseState)
Called when upload progress changes
- Parameters:
videoId- ID of video that is being uploaded
-
onUploadCancelled
abstract Unit onUploadCancelled(String videoId)
Called when upload gets cancelled
- Parameters:
videoId- ID of video that upload is canceled for
-
-
-
-