


error string - A string with the error's localized description.Įmitted during Handoff when an activity from a different deviceįails to be resumed.Event: 'will-continue-activity' macOS Įmitted during Handoff before an activity from a different device wants Supported activity types are specified in the app's ist under the ID as the activity's source app and that supports the activity's type. You should call event.preventDefault() if you want to handleĪ user activity can be continued only in an app that has the same developer Team webpageURL string (optional) - A string identifying the URL of the webpage accessed by the activity on another device, if available.Įmitted during Handoff when an activity from a different device wants.userInfo unknown - Contains app-specific state stored by the activity on.type string - A string identifying the activity.When Dock icon is clicked or application is re-launched. That did-become-active is emitted every time the app becomes active, not only
#Electron api download app mac
Event: 'did-become-active' macOS Įmitted when mac application become active. To re-launch the application when it's already running, or clicking on theĪpplication's dock or taskbar icon. This event, such as launching the application for the first time, attempting Event: 'activate' macOS Įmitted when the application is activated. You should call event.preventDefault() if you want to handle this event. ist file must define the URL scheme within the CFBundleURLTypes key, and On Windows, you have to parse process.argv (in the main process) to get theĮmitted when the user wants to open a URL with the application. Handle this case (even before the ready event is emitted). To listen for the open-file event very early in your application startup to open-file is also emitted when aįile is dropped onto the dock and the application is not yet running. To reuse the application to open the file. The open-fileĮvent is usually emitted when the application is already open and the OS wants Event: 'open-file' macOS Įmitted when the user wants to open a file with the application. To a shutdown/restart of the system or a user logout. Event: 'quit' Įmitted when the application is quitting. The will-quit and window-all-closed events. See the description of the window-all-closed event for the differences between
#Electron api download app windows
Event: 'will-quit' Įmitted when all windows have been closed and the application will quit. Note: On Windows, this event will not be emitted if the app is closed due Then before-quit is emitted after emitting close event on all windows and Note: If application quit was initiated by autoUpdater.quitAndInstall(), Will-quit event, and in this case the window-all-closed event would not beĮmitted before the application starts closing its windows.Ĭalling event.preventDefault() will prevent the default behavior, which is If the user pressed Cmd + Q, or the developer calledĪpp.quit(), Electron will first try to close all the windows and then emit the If you do not subscribe to this event and all windows are closed, the defaultīehavior is to quit the app however, if you subscribe, you control whether theĪpp quits or not. Event: 'window-all-closed' Įmitted when all windows have been closed. To get a Promise that is fulfilled when Electron is initialized. You can also call app.isReady() to check if this event has already fired and app.whenReady()

That was used to open the application, if it was launched from Notification Center. Or information from UNNotificationResponse Holds the userInfo of the NSUserNotification
