Interface DownloadCompletionHandler<T>


  • public interface DownloadCompletionHandler<T>
    Declares a completion handler used to report the status of a download request.
    • 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.