Skip to main content

FileTransmissionListener

interface FileTransmissionListener

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);

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. 。

Output parameter: None。

Related parameters: None。

method onFailed

void onFailed(AutelStatusCode statusCodeNew);

Description: This method is used to track failed status while file streaming。

Input parameters: statusCodeNew: status value that provides information of failed file streaming。

Output parameter: None。

Related parameters: None。