Interface AntFsCommon.IAntFsProgressUpdateReceiver

Enclosing class:
AntFsCommon

public static interface AntFsCommon.IAntFsProgressUpdateReceiver
Receiver for the AntFsProgressUpdate event, which is: Communicates the work done.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onNewAntFsProgressUpdate(AntFsState state, long transferredBytes, long totalBytes)
    Receives the data from a AntFsProgressUpdate event.
  • Method Details

    • onNewAntFsProgressUpdate

      void onNewAntFsProgressUpdate(AntFsState state, long transferredBytes, long totalBytes)
      Receives the data from a AntFsProgressUpdate event.
      Parameters:
      state - The current ANT-FS state.
      transferredBytes - The number of bytes transferred. Note: There are cases in the process of retrying a download that this number can restart at a lower value. This number is always the progress towards the total, not a count of total number of bytes sent over the connection.
      totalBytes - The total number of bytes to be transferred.