Package org.mozilla.geckoview
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 TypeMethodDescriptiondefault void
onPrint
(InputStream pdfInputStream) Print any provided PDF InputStream.default void
onPrint
(GeckoSession session) Print the current page content.default GeckoResult<Boolean>
onPrintWithStatus
(InputStream pdfInputStream) Print any provided PDF InputStream.
-
Method Details
-
onPrint
Print the current page content.- Parameters:
session
- to print
-
onPrint
Print any provided PDF InputStream.- Parameters:
pdfInputStream
- an InputStream containing a PDF
-
onPrintWithStatus
Print any provided PDF InputStream.- Parameters:
pdfInputStream
- an InputStream containing a PDF- Returns:
- A GeckoResult if the print dialog has closed
-