com.vaadin.flow.component.upload.

Interface ProgressListener

All Superinterfaces:

Serializable

Functional Interface:

This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ProgressListener extends Serializable

ProgressListener receives events to track progress of upload.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateProgress(long readBytes, long contentLength)

    Updates progress to listener.

  • Method Details

    • updateProgress

      void updateProgress(long readBytes, long contentLength)

      Updates progress to listener.

      Parameters:

      readBytes - bytes transferred

      contentLength - total size of file currently being uploaded, -1 if unknown