Gambar Produk
Services ini digunakan untuk unggah dan unduh gambar. Gambar tersebut adalah Gambar dari produk, namun bisa juga digunakan sebagai keterangan untuk rincian gambar atau hal lainnya.
3.6.1.1 CLUploadHandler
CLUploadHandler 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
CLUploadService 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 CLDownloadHandler
CLDownloadHandler class utamanya digunakan untuk mendapatkan riwayat transaksi.
doDownload
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 |