FileTransmitListener(simple)
interface FileTransmitListener
Description: file transmission listener with success, progress and failed
method onSuccess
void onSuccess(T result);
Description: file transfer success result
Input parameters: result: result of success object。
Output parameter: None。
Related parameters: None。
method onProgress
void onProgress(long sendLength, long totalLength, Long speed)
Description: This method is used in the context of uploading or downloading data, where progress tracking is needed.
Input parameters: sendLength: total number of bytes that have been transferred totalLength: total number of bytes that need to be transferred speed: speed of transmission。
Output parameter: None。
Related parameters: None。
method onFailed
void onFailed(String message);
Description: This method is used to track failed status while file transfer。
Input parameters: message: Error message that provides information of failed file transferring。
Output parameter: None。
Related parameters: None。