brazerzkidaipre.blogg.se

Electron api document
Electron api document





  1. Electron api document how to#
  2. Electron api document code#
  3. Electron api document mac#
  4. Electron api document windows#

This module requires Node.js 10.0 or higher to run. app bundle can only be signed when building on a host macOS platform.

Electron api document mac#

* Note for macOS / Mac App Store target bundles: the.

  • Linux (for x86, x86_64, armv7l, arm64, and mips64el architectures).
  • macOS (also known as darwin) / Mac App Store (also known as mas) * (for x86_64, arm64, and universal architectures).
  • Electron api document windows#

  • Windows (also known as win32, for x86, x86_64, and arm64 architectures).
  • It generates executables/bundles for the following target platforms: Supported PlatformsĮlectron Packager is known to run on the following host platforms: Platform, target arch, and Electron version (files named electron-v$.zip). A zipped, minimal ElectronĪpplication is approximately the same size as the zipped prebuilt binary for a given target Note that packaged Electron applications can be relatively large. Internally), or one of the related Electron tools, which utilizesĮlectron Packager-created folders as a basis.

    Electron api document code#

    Source code with a renamed Electron executable and supporting files into folders ready for distribution.įor creating distributables like installers and Linux packages, consider using either Electron exe, etc.) via JavaScript or the command line.Įlectron Packager is a command line tool and Node.js library that bundles Electron-based application Event: 'will-prevent-unload'Įmitted when a beforeunload event handler is attempting to cancel a page unload.Ĭalling event.Package your Electron app into OS-specific bundles (.

    electron api document electron api document

    Examples of this occurring are when anchor linksĪre clicked or when the DOM hashchange event is triggered. When in-page navigation happens, the page URL changes but does not cause Event: 'did-navigate-in-page'Įmitted when an in-page navigation happened in any frame.

  • httpStatusText string - empty for non HTTP navigations,Įmitted when any frame navigation is done.
  • This event is not emitted for in-page navigations, such as clicking anchor links
  • httpStatusText string - empty for non HTTP navigationsĮmitted when a main frame navigation is done.
  • httpResponseCode Integer -1 for non HTTP navigations.
  • This event cannot be prevented, if you want to prevent redirects you shouldĬheckout out the will-redirect event above. Event: 'did-redirect-navigation'Įmitted after a server side redirect occurs during navigation. This event will be emitted after did-start-navigation and always before theĭid-redirect-navigation event for the same navigation.Ĭalling event.preventDefault() will prevent the navigation (not just the Event: 'will-redirect'Įmitted when a server side redirect occurs during navigation. Event: 'did-start-navigation'Įmitted when any frame (including main) starts navigating. Use did-navigate-in-page event forĬalling event.preventDefault() will prevent the navigation.

    electron api document

    It is also not emitted for in-page navigations, such as clicking anchor links This event will not emit when the navigation is started programmatically withĪPIs like webContents.loadURL and webContents.back. The window.location object is changed or a user clicks a link in the page. Event: 'will-navigate'Įmitted when a user or the page wants to start navigation.

    electron api document

    Electron api document how to#

    See window.open() for more details and how to use this in conjunction with tWindowOpenHandler. Not emitted if the creation of the window is canceled from disposition string - Can be default, foreground-tab,īackground-tab, new-window, save-to-disk and other.Įmitted after successful creation of a window via window.open in the renderer.Only defined when the window is being created by a form that set If no post data is to be sent, the value will be null. That will be sent to the new window, along with the appropriate headers postBody PostBody (optional) - The post data.May or may not result in the Referer headerīeing sent, depending on the referrer policy. referrer Referrer - The referrer that will be.Unrecognized options are not filtered out. WebPreferences inherited from the parent, and options given by They are merged in increasing precedence: parsed optionsįrom the features string from window.open(), security-related options BrowserWindowConstructorOptions - The options used to create theīrowserWindow.frameName string - Name given to the created window in the.url string - URL for the created window.







    Electron api document