Package com.pdfgate

Interface PdfGateCallback<T>

Type Parameters:
T - the response payload type.

public interface PdfGateCallback<T>
Callback for asynchronous PDFGate requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(okhttp3.Call call, Throwable t)
    Called when the request fails or parsing throws an exception.
    void
    onSuccess(okhttp3.Call call, T value)
    Called when the request completes successfully.
  • Method Details

    • onSuccess

      void onSuccess(okhttp3.Call call, T value)
      Called when the request completes successfully.
      Parameters:
      call - the underlying OkHttp call.
      value - the parsed response payload.
    • onFailure

      void onFailure(okhttp3.Call call, Throwable t)
      Called when the request fails or parsing throws an exception.
      Parameters:
      call - the underlying OkHttp call.
      t - the failure cause.