Interface GeckoSession.PrintDelegate

Enclosing class:
GeckoSession

@AnyThread public static interface GeckoSession.PrintDelegate
Used for printing page content.

The provided implementation is in GeckoView. It uses a PDF of the content and the Android print API to print the page.

  • Method Details

    • onPrint

      default void onPrint(@NonNull GeckoSession session)
      Print the current page content.
      Parameters:
      session - to print
    • onPrint

      default void onPrint(@NonNull InputStream pdfInputStream)
      Print any provided PDF InputStream.
      Parameters:
      pdfInputStream - an InputStream containing a PDF
    • onPrintWithStatus

      @Nullable default GeckoResult<Boolean> onPrintWithStatus(@NonNull InputStream pdfInputStream)
      Print any provided PDF InputStream.
      Parameters:
      pdfInputStream - an InputStream containing a PDF
      Returns:
      A GeckoResult if the print dialog has closed