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 Summary

    Modifier and Type
    Method
    Description
    default void
    onPrint(InputStream pdfInputStream)
    Print any provided PDF InputStream.
    default void
    Print the current page content.
  • 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