Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

App API

James Leftley edited this page Mar 22, 2017 · 2 revisions

The App API provides information and control for the application's lifecycle.

Initial implementation

The initial implementation of the App API exposes app as an object, with a ready method which can be used to determine when the API is ready to be used.

  • Browser - this is effectively an no-op
  • Electron
    • main process - uses app.on('ready', callback) to ensure that Electron has finished initializing
    • renderer process - this is effectively an no-op
  • OpenFin - uses fin.desktop.main(callback) to ensure the OpenFin API is ready to use

In the Electron main process, a callback style API is used; in the Electron renderer process, the browser and OpenFin, a promise style API is used.

Clone this wiki locally