An adapter for Electron's API inside NW.js
// Be able to replace
const app = require('electron').app;
// with
const app = require('nw-electron-adapter')(window);
// and have most of the API work the same in NW.js.
npm install --save nw-electron-adapter
- Replace
const app = require('electron').app;
orconst {app} = require('electron');
withconst app = require('nw-electron-adapter')(window);
- Reference the below API Parity Tracker and make issues/PR's for missing features you need.
Statuses:
- ππππ Not Planned
- ππππ Proposed (PR or detailed issue)
- ππππ Planned
- ππππ Started
- ππππ Working
- ππππ Documented
- ππππ Tested
- ππππ Released
API | Rating | Status |
---|---|---|
quit |
ππππ | Not Planned |
exit |
ππππ | Not Planned |
relaunch |
ππππ | Not Planned |
isReady |
ππππ | Not Planned |
whenReady |
ππππ | Not Planned |
focus |
ππππ | Not Planned |
hide |
ππππ | Not Planned |
show |
ππππ | Not Planned |
setAppLogsPath |
ππππ | Not Planned |
getAppPath |
ππππ | Released v1.0.0 |
getPath |
ππππ | Released v1.0.0 |
getFileIcon |
ππππ | Not Planned |
setPath |
ππππ | Not Planned |
getVersion |
ππππ | Not Planned |
getName |
ππππ | Not Planned |
setName |
ππππ | Not Planned |
getLocale |
ππππ | Not Planned |
getLocaleCountryCode |
ππππ | Not Planned |
addRecentDocument |
ππππ | Not Planned |
clearRecentDocuments |
ππππ | Not Planned |
setAsDefaultProtocolClient |
ππππ | Planned externaly |
removeAsDefaultProtocolClient |
ππππ | Planned externaly |
isDefaultProtocolClient |
ππππ | Planned externaly |
getApplicationNameForProtocol |
ππππ | Planned externaly |
setUserTasks |
ππππ | Not Planned |
getJumpListSettings |
ππππ | Not Planned |
setJumpList |
ππππ | Not Planned |
requestSingleInstanceLock |
ππππ | Not Planned |
hasSingleInstanceLock |
ππππ | Not Planned |
releaseSingleInstanceLock |
ππππ | Not Planned |
setUserActivity |
ππππ | Not Planned |
getCurrentActivityType |
ππππ | Not Planned |
invalidateCurrentActivity |
ππππ | Not Planned |
resignCurrentActivity |
ππππ | Not Planned |
updateCurrentActivity |
ππππ | Not Planned |
setAppUserModelId |
ππππ | Not Planned |
setActivationPolicy |
ππππ | Not Planned |
importCertificate |
ππππ | Not Planned |
disableHardwareAcceleration |
ππππ | Not Planned |
disableDomainBlockingFor3DAPIs |
ππππ | Not Planned |
getAppMetrics |
ππππ | Not Planned |
getGPUFeatureStatus |
ππππ | Not Planned |
getGPUInfo |
ππππ | Not Planned |
setBadgeCount |
ππππ | Not Planned |
getBadgeCount |
ππππ | Not Planned |
isUnityRunning |
ππππ | Not Planned |
getLoginItemSettings |
ππππ | Not Planned |
setLoginItemSettings |
ππππ | Not Planned |
isAccessibilitySupportEnabled |
ππππ | Not Planned |
setAccessibilitySupportEnabled |
ππππ | Not Planned |
showAboutPanel |
ππππ | Not Planned |
setAboutPanelOptions |
ππππ | Not Planned |
isEmojiPanelSupported |
ππππ | Not Planned |
showEmojiPanel |
ππππ | Not Planned |
startAccessingSecurityScopedResource |
ππππ | Not Planned |
enableSandbox |
ππππ | Not Planned |
isInApplicationsFolder |
ππππ | Not Planned |
moveToApplicationsFolder |
ππππ | Not Planned |
isSecureKeyboardEntryEnabled |
ππππ | Not Planned |
setSecureKeyboardEntryEnabled |
ππππ | Not Planned |
accessibilitySupportEnabled |
ππππ | Not Planned |
applicationMenu |
ππππ | Not Planned |
badgeCount |
ππππ | Not Planned |
commandLine |
ππππ | Not Planned |
dock |
ππππ | Not Planned |
isPackaged |
ππππ | Not Planned |
name |
ππππ | Not Planned |
userAgentFallback |
ππππ | Not Planned |
allowRendererProcessReuse |
ππππ | Not Planned |
Event | Rating | Status |
---|---|---|
will-finish-launching |
ππππ | Not Planned |
ready |
ππππ | Not Planned |
window-all-closed |
ππππ | Not Planned |
before-quit |
ππππ | Not Planned |
will-quit |
ππππ | Not Planned |
quit |
ππππ | Not Planned |
open-file |
ππππ | Not Planned |
open-url |
ππππ | Not Planned |
activate |
ππππ | Not Planned |
continue-activity |
ππππ | Not Planned |
will-continue-activity |
ππππ | Not Planned |
continue-activity-error |
ππππ | Not Planned |
activity-was-continued |
ππππ | Not Planned |
update-activity-state |
ππππ | Not Planned |
new-window-for-tab |
ππππ | Not Planned |
browser-window-blur |
ππππ | Not Planned |
browser-window-focus |
ππππ | Not Planned |
browser-window-created |
ππππ | Not Planned |
web-contents-created |
ππππ | Not Planned |
certificate-error |
ππππ | Not Planned |
select-client-certificate |
ππππ | Not Planned |
login |
ππππ | Not Planned |
gpu-info-update |
ππππ | Not Planned |
gpu-process-crashed |
ππππ | Not Planned |
renderer-process-crashed |
ππππ | Not Planned |
accessibility-support-changed |
ππππ | Not Planned |
session-created |
ππππ | Not Planned |
second-instance |
ππππ | Not Planned |
desktop-capturer-get-sources |
ππππ | Not Planned |
remote-require |
ππππ | Not Planned |
remote-get-global |
ππππ | Not Planned |
remote-get-builtin |
ππππ | Not Planned |
remote-get-current-window |
ππππ | Not Planned |
remote-get-current-web-contents |
ππππ | Not Planned |