Interface DownloadWithParametersCompletionHandler<T>
-
public interface DownloadWithParametersCompletionHandler<T>
Declares a completion handler used to report the status of a download request.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onError(DownloadServiceError error)
Operation failed.void
onSuccess(T downloaded, DownloadResultArgs resultArgs)
Success operation.
-
-
-
Method Detail
-
onSuccess
void onSuccess(T downloaded, DownloadResultArgs resultArgs)
Success operation.- Parameters:
downloaded
- Downloaded data from URL. It may be null if either an error occurs or the file has not been modified as compared to its version identified by the E-Tag passed as part of the optional download parameters.resultArgs
- Additional values to control download process.
-
onError
void onError(DownloadServiceError error)
Operation failed.- Parameters:
error
- Not null if the request failed. Represents the error associated with the request.
-
-