co.easimart.ProgressCallback Maven / Gradle / Ivy
package co.easimart;
/**
* A {@code ProgressCallback} is used to get upload or download progress of a {@link EasimartFile}
* action.
*
* The easiest way to use a {@code ProgressCallback} is through an anonymous inner class.
*/
// FYI, this does not extend EasimartCallback2 since it does not match the usual signature
// done(T, EasimartException), but is done(T).
public interface ProgressCallback {
/**
* Override this function with your desired callback.
*/
public void done(Integer percentDone);
}