API
Functions
createNewWindow()
Create a new window. The created window will automatically load the configured app URL.
Signature:
Returns:
Promise<void>
focus()
Show all windows associated with the current app and set focus on the last opened window.
Signature:
Parameters
Returns:
Promise<void>
getBadgeCount()
Signature:
Returns:
Promise<number>
The current number set as the app's badge.
getCaptureSources()
Get the capture sources available on the user's machine.
Signature:
Parameters
Returns:
Promise<CaptureSource[]>
getInternalURLs()
Signature:
Returns:
Promise<string>
A list of URL patterns that this app is currently handling.
getLaunchSettings()
Get the app's current launch settings. Seee LaunchSettings.
Signature:
Returns:
Promise<LaunchSettings>
hide()
Hide all windows associated with the current app.
Signature:
Returns:
Promise<void>
once()
Executes a given function just once for the entire application.
Signature:
Parameters
Returns:
Promise<T>
The value that the target function returns.
quit()
Try to close all windows and quit the app.
This method guarantees that all beforeunload
and unload
event handlers are correctly executed. It is possible that a window cancels the quitting by returning false
in the beforeunload
event handler.
Signature:
Returns:
Promise<void>
setBadgeCount()
Sets a numeric badge on the app icon in the user's task bar/dock.
Signature:
Parameters
Returns:
Promise<void>
setInternalURLs()
Update what URLs are routed to this app. URLs that are not listed will be routed to the default browser. This will over-ride any previously set internal URLs.
Signature:
Parameters
Returns:
Promise<void>
setLaunchSettings()
Sets the app's launch settings. See LaunchSettings.
Signature:
Parameters
Returns:
Promise<void>
show()
Show all windows associated with the current app.
Signature:
Returns:
Promise<void>
Interfaces
FocusOptions
Signature:
Properties
LaunchSettings
Signature:
Properties
Variables
getVersion
The current version of this app.
Signature:
on
Signature:
Type Aliases
CaptureSource
Signature:
DesktopCapturerOptions
Signature: