Interface ProgressCallback
public interface ProgressCallback
Callback for reporting download progress.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
progressCallback
(FileReference file, long current, long total) Triggered when import progress changes.
-
Method Details
-
progressCallback
Triggered when import progress changes.
Note: you should NOT try to call `Camera.disconnect()` directly from this callback. If you intend to close the camera connection you should do that in a separate thread.- Parameters:
file
- The reference of the file currently being downloaded.current
- Number of bytes downloaded of current file.total
- File size in number of bytes of current file. This may be unknown (0) for some requests.
-