3.6.1 Product Image
Services ini digunakan untuk unggah dan unduh gambar. Gambar tersebut adalah Gambar dari produk, namun bisa juga digunakan sebagai keterangan untuk gambar rincian atau hal lainnya.
3.6.1.1 ICLUploadHandler
ICLUploadHandler class utamanya digunakan untuk mendapatkan riwayat transaksi.
doUpload
Method | Description |
---|---|
doUpload(String photoPath) | This function uploads images from the local android file to the cloud. |
3.6.1.2 ICLUploadService
ICLUploadService interfaces mempunyai methods/callbacks:
onUploadImageSuccess
onUploadImageError
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 ICLDownloadHandler
ICLDownloadHandler class utamanya digunakan untuk mendapatkan riwayat transaksi.
doDownload
ICLDownloadHandler
Method | Description |
---|---|
doDownload(String imageUrl) | this function download image in the URL with authentication |
3.6.1.4 ICLDownloadService
ICLDownloadService interfaces mempunyai methods/callbacks:
onDownloadImageSuccess
onDownloadImageError
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 |