SessionListener

interface SessionListener

Upstream session events listener

Functions

Link copied to clipboard
open fun onComplete(session: MultiFileUploader)

Called when all the parts of a session has been successfully uploaded.

Link copied to clipboard
open fun onEndWithError(session: MultiFileUploader)

Called when the session uploaded all the parts but few parts weren't uploaded (due to error or cancellation). In this case, you can create a new backup session to upload the remaining files ApiVideoUpstream.loadExistingSession.

Link copied to clipboard
open fun onNewSessionCreated(session: MultiFileUploader)

Called when a new session has been created. It is called when the first file has been added to the upload queue.

Link copied to clipboard
open fun onNumberOfPartsChanged(session: MultiFileUploader, numOfParts: Int)

Called when the number of parts in session has changed.