Class KiiRTransferCallback
- java.lang.Object
-
- com.kii.cloud.storage.resumabletransfer.KiiRTransferCallback
-
- All Implemented Interfaces:
KiiRTransferProgressCallback
public abstract class KiiRTransferCallback extends java.lang.Object implements KiiRTransferProgressCallback
-
-
Constructor Summary
Constructors Constructor Description KiiRTransferCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onInfoCompleted(KiiRTransfer operator, KiiRTransferInfo info, java.lang.Exception e)
Executed on the UI thread when getting info of the transfer has completed.void
onProgress(KiiRTransfer operator, long completedInBytes, long totalSizeinBytes)
Executed on the UI thread when transfer progress has updated.void
onStart(KiiRTransfer operator)
Executed on the UI thread when transfer started.void
onSuspendCompleted(KiiRTransfer operator, java.lang.Exception e)
Executed on the UI thread when the transfer has suspended.void
onTerminateCompleted(KiiRTransfer operator, java.lang.Exception e)
Executed on the UI thread when the transfer has terminatedvoid
onTransferCompleted(KiiRTransfer operator, java.lang.Exception e)
Executed on the UI thread when the transfer has completed.
-
-
-
Method Detail
-
onStart
public void onStart(@NonNull KiiRTransfer operator)
Executed on the UI thread when transfer started.- Parameters:
operator
- Transfer instance operation invoked.
-
onProgress
public void onProgress(@NonNull KiiRTransfer operator, long completedInBytes, long totalSizeinBytes)
Executed on the UI thread when transfer progress has updated.- Specified by:
onProgress
in interfaceKiiRTransferProgressCallback
- Parameters:
operator
- Transfer instance operation invoked.completedInBytes
- completed size of transfer in bytes.totalSizeinBytes
- total size of transfer in bytes.
-
onTransferCompleted
public void onTransferCompleted(@NonNull KiiRTransfer operator, @Nullable java.lang.Exception e)
Executed on the UI thread when the transfer has completed.- Parameters:
operator
- operation invoked.e
- null if completed otherwise failed.- See Also:
NoEntryException
,TerminatedException
,AlreadyStartedException
-
onSuspendCompleted
public void onSuspendCompleted(@NonNull KiiRTransfer operator, @Nullable java.lang.Exception e)
Executed on the UI thread when the transfer has suspended.- Parameters:
operator
- Transfer instance operation invoked.e
- null if completed otherwise failed.- See Also:
NoEntryException
-
onTerminateCompleted
public void onTerminateCompleted(@NonNull KiiRTransfer operator, @Nullable java.lang.Exception e)
Executed on the UI thread when the transfer has terminated- Parameters:
operator
- Transfer instance operation invoked.e
- null if completed otherwise failed.
-
onInfoCompleted
public void onInfoCompleted(@NonNull KiiRTransfer operator, @Nullable KiiRTransferInfo info, @Nullable java.lang.Exception e)
Executed on the UI thread when getting info of the transfer has completed.- Parameters:
operator
- Transfer instance operation invoked.info
- of the transfer.e
- null if completed otherwise failed.
-
-