API
Functions
availablePrinters()
Get a list of all available printers on the user's system.
Signature:
Returns:
Promise<Printer[]>
Example
canGoBack()
Determine if the history stack has items before the currently loaded URL.
Signature:
Returns:
Promise<boolean>
canGoForward()
Determine if the history stack has items ahead of the currently loaded URL.
Signature:
Returns:
Promise<boolean>
getZoomFactor()
Signature:
Returns:
Promise<number>
The current zoom factor
getZoomLevel()
Signature:
Returns:
Promise<number>
The current zoom level
loadURL()
Loads a URL into the WebContents
Signature:
Parameters
Returns:
Promise<void>
openUrlInApp()
Explicitly open a specified URL within the desktop app. This bypasses the check and always opens URL in-app and never in the system browser.
Signature:
Parameters
Returns:
Promise<void>
print()
Adds a print job for the current page to the operating system's queue for immediate printing.
Signature:
Parameters
Returns:
Promise<PrintJob>
setZoomFactor()
Signature:
Parameters
Returns:
Promise<void>
setZoomLevel()
Signature:
Parameters
Returns:
Promise<void>
toggleDevTools()
Toggles whether developer tools are displayed in the current WebContents.
Signature:
Returns:
Promise<void>
Variables
on
Signature:
Type Aliases
Printer
A single printer.
Signature:
References: PrinterStatus
PrinterStatus
Represents the current status of a printer.
Signature:
PrintJob
Configuration for a print job.
Signature:
WebContentsEvent
Signature: