public interface ProgressListener
| 限定符和类型 | 接口和说明 |
|---|---|
static class |
ProgressListener.ExceptionReporter
A utility class for capturing and reporting the first exception thrown by
a given progress listener.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static ProgressListener |
NOOP |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
progressChanged(ProgressEvent progressEvent)
Called when progress has changed, such as additional bytes transferred,
transfer failed, etc.
|
static final ProgressListener NOOP
void progressChanged(ProgressEvent progressEvent)
SDKProgressPublisher. Implementation of this interface
should never block.
If the implementation follows the best practice and doesn't block, it
should then extends from SyncProgressListener.
Note any exception thrown by the listener will get ignored.
Should there be need to capture any such exception, you may consider
wrapping the listener with ProgressListener.ExceptionReporter.wrap(ProgressListener).
progressEvent - The event describing the progress change.SDKProgressPublisher,
ProgressListener.ExceptionReporterCopyright © 2021. All rights reserved.