Package com.kii.cloud.storage.callback
Interface KiiObjectBodyCallback
-
- All Known Implementing Classes:
KiiObjectCallBack
public interface KiiObjectBodyCallback
Notifies progress of KiiObject body transfer. Only used for non-blocking call ofKiiObject.downloadBody(java.io.File, KiiObjectBodyCallback)
andKiiObject.uploadBody(java.io.File, String, KiiObjectBodyCallback)
. You can also receive these progress information fromKiiObjectCallBack
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onTransferCompleted(KiiObject object, java.lang.Exception exception)
Executed on the UI thread when the transfer has completed.void
onTransferProgress(KiiObject object, long completedInBytes, long totalSizeinBytes)
Executed on the UI thread when transfer progress has updated.void
onTransferStart(KiiObject object)
Executed on the UI thread when transfer is started.
-
-
-
Method Detail
-
onTransferStart
void onTransferStart(@NonNull KiiObject object)
Executed on the UI thread when transfer is started.- Parameters:
object
- KiiObject instance which has invoked transfer operation.
-
onTransferCompleted
void onTransferCompleted(@NonNull KiiObject object, @Nullable java.lang.Exception exception)
Executed on the UI thread when the transfer has completed.- Parameters:
object
- KiiObject instance which has invoked transfer operation.exception
- null if completed otherwise failed.
-
onTransferProgress
void onTransferProgress(@NonNull KiiObject object, long completedInBytes, long totalSizeinBytes)
Executed on the UI thread when transfer progress has updated.- Parameters:
object
- KiiObject instance which has invoked transfer operation.completedInBytes
- Completed size of transfer in bytes.totalSizeinBytes
- Total size of transfer in bytes.
-
-