© Chris Griffith, Leif Wells 2017

Chris Griffith and Leif Wells, Electron: From Beginner to Pro, https://doi.org/10.1007/978-1-4842-2826-5_8

8. WebContents, Screens, and Locales

Chris Griffith and Leif Wells2

(1)San Diego, California, USA

(2)Atlanta, Georgia, USA

The development team at GitHub has added many good features to Electron. There are a few features that we would like to make you aware of and experiment with in this chapter.

First, we’ll take a look at a property of the BrowserWindow called webContents, which has many events and methods but we’ll be focusing on a few items with which we think you should become familiar: capturing events, managing windows, and capturing a window as an image or pdf file. After that, we’ll take a look at the ...

Get Electron: From Beginner to Pro: Learn to Build Cross Platform Desktop Applications using Github's Electron now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.