Product Image
The services are used to upload and download images. The image is mainly product image, but not restricted to provide invoice images or others.
3.6.1.1 CLUploadHandler
The CLUploadHandler class mainly used to get transaction history.
doUpload| Method | Description |
|---|---|
doUpload(String photoPath) | This function uploads images from the local android file to the cloud. |
3.6.1.2 ICLUploadService
The CLUploadService interfaces has methods/callbacks:
onUploadImageSuccessonUploadImageError| Method | Description |
|---|---|
onUploadSuccess(CLUploadResponse response) | this callback is called when the upload image success |
onUploadError(CLErrorResponse error) | this callback is called when the upload image fail/error |
3.6.1.3 CLDownloadHandler
The CLDownloadHandler service class mainly used to get transaction history.
doDownload| Method | Description |
|---|---|
doDownload(String imageUrl) | this function download image in the URL with authentication |
3.6.1.4 ICLDownloadService
The CLDownloadService interfaces has methods/callbacks:
onDownloadImageSuccessonDownloadImageError| Method | Description |
|---|---|
onDownloadImageSuccess(CLDownloadImageResponse response) | this callback to get the image when download is finished |
onDownloadImageError(CLErrorResponse error) | this callback is called when image can't be download |