dji.sdk.Camera.DJIMediaManager.CameraDownloadListener<E> |
This callback will notify the app when the media download executed.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void | onFailure(DJIError error) Called when the media download failed. | ||||||||||
abstract void | onProgress(long total, long current) Called to update the download progress. | ||||||||||
abstract void | onRateUpdate(long total, long current, long persize) Called to show the download rate. | ||||||||||
abstract void | onStart() Called when the file download begins. | ||||||||||
abstract void | onSuccess(E data) Called when the media download is completed. |
Called when the media download failed.
error | The error information. |
---|
Called to update the download progress. It is called every time there is data received.
total | The total size of the file being downloaded. |
---|---|
current | The current download data size. |
Called to show the download rate. It is called every 1 second. Hence, the persize which is the download size among two calls is the download rate.
total | The total size |
---|---|
current | The current download size |
persize | The download size between two calls. |
Called when the file download begins.
Called when the media download is completed.