Skip to main content

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.

This function uploads images from the local android file to the cloud.
doUpload

The CLUploadHandler class mainly used to get transaction history.

ICLUploadHandler
MethodDescription
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:

This callback is called when the upload is finished.
onUploadImageSuccess

This callback is called when images can't be uploaded
onUploadImageError

The ICLUploadService interfaces has methods/callback.

ICLUploadService
MethodDescription
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.

This function downloads images in the URL with authentication.
doDownload

The CLDownloadHandler service class mainly used to get transaction history

ICLDownloadHandler
MethodDescription
doDownload(String imageUrl)this function download image in the URL with authentication

3.6.1.4 ICLDownloadService

The CLDownloadService interfaces has methods/callbacks:

This callback is called to get the image when download is finished.
onDownloadImageSuccess

This callback is called when image can't be download
onDownloadImageError

The ICLDownloadService interfaces has method/callback;

ICLDownloadService
MethodDescription
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