DownloadMediaHandler

public interface DownloadMediaHandler

Download media file callback.

Used for Via URL directly Download Media File (Image, audio, Video etc.), If Local cache Contains This File, Then directly From Local Get, Otherwise From Server Download.

Callback Order:

Functions

Link copied to clipboard
public abstract Unit onError(NCError error)

Download failed.

Link copied to clipboard
public abstract Unit onProgress(Integer progress)

Download progress update.

Link copied to clipboard
public abstract Unit onSuccess(String localPath)

Download succeeded.