001package com.box.sdk;
002
003/** The listener interface for monitoring the progress of a long-running API call. */
004public interface ProgressListener {
005
006  /**
007   * Invoked when the progress of the API call changes. In case of file uploads which are coming
008   * from a dynamic stream the file size cannot be determined and total bytes will be reported as
009   * -1.
010   *
011   * @param numBytes the number of bytes completed.
012   * @param totalBytes the total number of bytes.
013   */
014  void onProgressChanged(long numBytes, long totalBytes);
015}