CefPrintHandlerAdapter

An abstract adapter class for receiving print events on Linux. The methods in this class are empty. This class exists as convenience for creating handler objects.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun getNativeRef(): Long

open fun getNativeRef(identifer: String): Long
Method is called by the native code to get the reference to an previous stored identifier.
Link copied to clipboard
open fun getPdfPaperSize(browser: CefBrowser, deviceUnitsPerInch: Int): Dimension
Called to retrieve the page size when printToPDF is requested for a browser.
Link copied to clipboard
open fun onPrintDialog(browser: CefBrowser, hasSelection: Boolean, callback: CefPrintDialogCallback): Boolean
Called to show the print dialog.
Link copied to clipboard
open fun onPrintJob(browser: CefBrowser, documentName: String, pdfFilePath: String, callback: CefPrintJobCallback): Boolean
Called to send the print job to the printer.
Link copied to clipboard
open fun onPrintReset(browser: CefBrowser)
Called to reset client state related to printing.
Link copied to clipboard
open fun onPrintSettings(browser: CefBrowser, settings: CefPrintSettings, getDefaults: Boolean)
Called to get print settings.
Link copied to clipboard
open fun onPrintStart(browser: CefBrowser)
Called when printing has started.
Link copied to clipboard
open fun setNativeRef(identifer: String, nativeRef: Long)
Method is called by the native code to store a reference to an implemented native JNI counterpart.