Interface DownloadCompletionHandler<T>
-
public interface DownloadCompletionHandler<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)
Success operation.
-
-
-
Method Detail
-
onSuccess
void onSuccess(T downloaded)
Success operation.- Parameters:
downloaded
- Downloaded data from URL.
-
onError
void onError(DownloadServiceError error)
Operation failed.- Parameters:
error
- Not null if the request failed. Represents the error associated with the request.
-
-