Functions

Link copied to clipboard
open fun blockingUpload()

Uploads the resources in scope in a synchronous way. Important: this is a blocking method and it should not be executed in the main thread. Consider the asynchronous version .rxUpload. The method will finish as soon as the whole upload an processing is finished.

Link copied to clipboard
abstract fun flowUpload(): Flow<D2Progress>

Uploads the resources in scope in an asynchronous way, returning a Flow<D2Progress> that will emit progress until the whole upload is finished and the Flow is completed.

Link copied to clipboard
open fun rxUpload(): Observable<D2Progress>

Uploads the resources in scope in an asynchronous way. An Observable<D2Progress> is returned, which will emit progress until the whole upload is finished and the Observable is completed.

Link copied to clipboard
open fun upload(): Observable<D2Progress>

Uploads the resources in scope in an asynchronous way. An Observable<D2Progress> is returned, which will emit progress until the whole upload is finished and the Observable is completed.