public final class ProgressReporter extends Object
ProgressReporterImpl
offers a convenient way to add progress tracking to a given Flowable.Constructor and Description |
---|
ProgressReporter() |
Modifier and Type | Method and Description |
---|---|
static io.reactivex.Flowable<ByteBuffer> |
addProgressReporting(io.reactivex.Flowable<ByteBuffer> data,
IProgressReceiver progressReceiver)
Adds progress reporting functionality to the given
Flowable . |
public static io.reactivex.Flowable<ByteBuffer> addProgressReporting(io.reactivex.Flowable<ByteBuffer> data, IProgressReceiver progressReceiver)
Flowable
. Each subscription (and therefore each
retry) will rewind the progress reported so as not to over-report. The data reported will be the total amount
of data emitted so far, or the "current position" of the Flowable.data
- The data whose transfer progress is to be tracked.progressReceiver
- IProgressReceiver
Flowable
that emits the same data as the source but calls a callback to report the total amount
of data emitted so far.Copyright © 2019 Microsoft Corporation. All rights reserved.