Class KiiRTransferCallback

    • Constructor Detail

      • KiiRTransferCallback

        public KiiRTransferCallback()
    • 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 interface KiiRTransferProgressCallback
        Parameters:
        operator - Transfer instance operation invoked.
        completedInBytes - completed size of transfer in bytes.
        totalSizeinBytes - total size of transfer in bytes.
      • 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.