public class FileUploader extends Object
| Constructor and Description |
|---|
FileUploader(BynderApi bynderApi)
Creates a new instance of the class.
|
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<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)
bynderApi - Instance to handle the HTTP communication with the Bynder API.public io.reactivex.Observable<SaveMediaResponse> uploadFile(UploadQuery uploadQuery)
uploadQuery - Upload query with the information to upload the file.Observable with the SaveMediaResponse information.public io.reactivex.Observable<UploadProgress> uploadFileWithProgress(UploadQuery uploadQuery)
uploadQuery - Upload query with the information to upload the file.Observable with the UploadProgress information.Copyright © 2018. All rights reserved.