Skip to main content

3.6.1 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 ICLUploadHandler

The ICLUploadHandler class mainly used to get transaction history.

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

The ICLUploadHandler 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 ICLUploadService interface 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 interface 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 ICLDownloadHandler

The ICLDownloadHandler 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 ICLDownloadService interface 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 interface 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