Skip to main content

File Listener

FileListener Interface

Description: file upload and download status listener interface

method onSuccess

void onSuccess(T result);

Description: success result listener method.

Input parameters: result getting result of success Output parameter: None。

Related parameters: None。

method onProgress

void onProgress(long sendLength, long totalLength);

Description: gets the download and upload progress

Input parameters: sendLength downloaded length totalLength total file length Output parameter: None。

Related parameters: None。

method onFailed

void onFailed(String msg);

Description:upload and download file failed listener with message

Input parameters:msg passing message of failed state

Output parameter: None。

Related parameters: None。