public static interface

DJIMediaManager.CameraDownloadListener

dji.sdk.Camera.DJIMediaManager.CameraDownloadListener<E>

Class Overview

This callback will notify the app when the media download executed.

Summary

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.

Public Methods

public abstract void onFailure (DJIError error)

Called when the media download failed.

Parameters
error The error information.

public abstract void onProgress (long total, long current)

Called to update the download progress. It is called every time there is data received.

Parameters
total The total size of the file being downloaded.
current The current download data size.

public abstract void onRateUpdate (long total, long current, long persize)

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.

Parameters
total The total size
current The current download size
persize The download size between two calls.

public abstract void onStart ()

Called when the file download begins.

public abstract void onSuccess (E data)

Called when the media download is completed.