public class FileUploader extends Object
| Constructor and Description |
|---|
FileUploader(BynderApi bynderApi,
QueryDecoder queryDecoder)
Creates a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<UploadAdditionalMediaResponse> |
uploadAdditionalFile(UploadQuery uploadQuery) |
io.reactivex.Single<SaveMediaResponse> |
uploadFile(UploadQuery uploadQuery)
Uploads a file with the information specified in the query parameter.
|
io.reactivex.Observable<UploadProgress> |
uploadFileWithProgress(UploadQuery uploadQuery)
Uploads a file with the information specified in the query parameter
while providing information on the progress of the upload via the Observable returned.
|
public FileUploader(BynderApi bynderApi, QueryDecoder queryDecoder)
bynderApi - Instance to handle the HTTP communication with the Bynder API.queryDecoder - Query decoder.public io.reactivex.Single<SaveMediaResponse> uploadFile(UploadQuery uploadQuery)
uploadQuery - Upload query with the information to upload the file.Observable with the SaveMediaResponse information.public io.reactivex.Single<UploadAdditionalMediaResponse> uploadAdditionalFile(UploadQuery uploadQuery)
public io.reactivex.Observable<UploadProgress> uploadFileWithProgress(UploadQuery uploadQuery)
uploadQuery - Upload query with the information to upload the file.Observable with the UploadProgress information.Copyright © 2024. All rights reserved.