Interface TransmissionProgressListener


  • public interface TransmissionProgressListener
    A generic interface for sending progress updates of a data transmission.
    • Method Detail

      • onProgressUpdate

        void onProgressUpdate​(long progress,
                              long max)
        Callback to notify subscribers of progress updates. The number of times this callback fires depends on the transport implementation. Subscribers can expect that on successful completion of a transmission a call to this function will fire with progress == max.
        Parameters:
        progress - Progress value (<= max)
        max - Maximum progress value (>= progress)