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