interface DownloadListener<E> |
Package: | dji.sdk.media |
This callback will notify the app when the media download executed.
void onStart() |
Package: | dji.sdk.media |
Called when the file download begins.
void onRateUpdate(long total, long current, long persize) |
Package: | dji.sdk.media |
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.
long total | The total size. |
long current | The current download size. |
long persize | The download size between two calls. |
void onRealtimeDataUpdate(byte[] data, long position, boolean isLastPack) |
Package: | dji.sdk.media |
Called to get the media file data download from camera by byte in real time.
byte[] data | The media file data download from camera by byte. |
long position | The byte offset into the meida file at which the data starts. |
boolean isLastPack | true if the pack is the last one. |
void onProgress(long total, long current) |
Package: | dji.sdk.media |
Called to update the download progress. It is called every time there is data received.
long total | The total size of the file being downloaded. |
long current | The current download data size. |
void onSuccess(E data) |
Package: | dji.sdk.media |
Called when the media download is completed.
E data | The media that was successfully downloaded |
void onFailure(DJIError error) |
Package: | dji.sdk.media |
Called when the media download failed.
DJIError error | The error information. |
{{searchCount}} Results