Optional
options: SubscriptionOptionsPerforms the specified window transitions.
Window.animate
Describes the animations to perform. See the tutorial.
Options for the animation. See the tutorial.
Provides credentials to authentication requests
Window.authenticate
userName to provide to the authentication challenge
password to provide to the authentication challenge
Optional
options: CapturePageOptionsOpens the developer tools for the service worker context.
inspectServiceWorker
Window
Window.inspectServiceWorker
Dispatch a result to the caller of showPopupWindow
. If this window isn't currently being shown as a popup, this call will silently fail.
Window.dispatchPopupResult
Serializable data to send to the caller window.
Optional
options: FindInPageOptionsGets the current bounds (top, bottom, right, left, width, height) of the window.
Window.getBounds
Gets an information object for the window.
Window.getInfo
Returns the native OS level Id. In Windows, it will return the Windows handle.
Window.getNativeId
Gets the current settings of the window.
Window.getOptions
Gets the parent application.
Window.getParentApplication
DEPRECATED - please use Window.capturePage. Gets a base64 encoded PNG image of the window or just part a of it.
Window.capturePage
Optional
area: RectangleThe area of the window to be captured. Omitting it will capture the whole visible window.
Previously called getNativeWindow. Returns the Window Object that represents the web context of the target window. This is the same object that you would get from calling window.open() in a standard web context. The target window needs to be in the same application as the requesting window as well as comply with same-origin policy requirements.
Window.getWebWindow
Moves the window by a specified amount.
Window.moveBy
The change in the left position of the window
The change in the top position of the window
Optional
positioningOptions: PositioningOptionsMoves the window to a specified location.
Window.moveTo
The left position of the window
The top position of the window
Optional
positioningOptions: PositioningOptionsOptional
options: SubscriptionOptionsOptional
options: SubscriptionOptionsOptional
options: SubscriptionOptionsOptional
options: SubscriptionOptionsPrints the contents of the window.
Window.print
Configuration for the print task.
Optional
eventType: "blurred" | "certificate-selection-shown" | "crashed" | "did-change-theme-color" | "focused" | "navigation-rejected" | "url-changed" | "did-fail-load" | "did-finish-load" | "page-favicon-updated" | "page-title-updated" | "resource-load-failed" | "response-received" | "child-content-blocked" | "child-content-opened-in-browser" | "child-view-created" | "file-download-started" | "file-download-progress" | "file-download-completed" | "hidden" | "hotkey" | "shown" | "view-detached" | "auth-requested" | "begin-user-bounds-changing" | "bounds-changed" | "bounds-changing" | "close-requested" | "closed" | "closing" | "disabled-movement-bounds-changed" | "disabled-movement-bounds-changing" | "embedded" | "end-user-bounds-changing" | "external-process-exited" | "external-process-started" | "initialized" | "layout-initialized" | "layout-ready" | "maximized" | "minimized" | "options-changed" | "performance-report" | "preload-script-state-changed" | "preload-script-state-changing" | "reloaded" | "restored" | "show-requested" | "user-movement-disabled" | "user-movement-enabled" | "will-move" | "will-redirect" | "will-resize" | "view-attached" | "view-blurred" | "view-certificate-selection-shown" | "view-crashed" | "view-did-change-theme-color" | "view-focused" | "view-navigation-rejected" | "view-url-changed" | "view-did-fail-load" | "view-did-finish-load" | "view-page-favicon-updated" | "view-page-title-updated" | "view-resource-load-failed" | "view-response-received" | "view-child-content-blocked" | "view-child-content-opened-in-browser" | "view-child-view-created" | "view-file-download-started" | "view-file-download-progress" | "view-file-download-completed" | "view-created" | "view-destroyed" | "view-hidden" | "view-hotkey" | "view-shown" | "view-target-changed" | "found-in-page" | "certificate-error"Optional
options: SubscriptionOptionsResizes the window by a specified amount.
Window.resizeBy
The change in the width of the window
The change in the height of the window
Specifies a corner to remain fixed during the resize. Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right". If undefined, the default is "top-left"
Optional
positioningOptions: PositioningOptionsResizes the window to the specified dimensions.
Window.resizeTo
The change in the width of the window
The change in the height of the window
Specifies a corner to remain fixed during the resize. Can take the values: "top-left", "top-right", "bottom-left", or "bottom-right". If undefined, the default is "top-left"
Optional
positioningOptions: PositioningOptionsSets the window's size and position.
This is a *
Window.setBounds
Optional
positioningOptions: PositioningOptionsShows the window if it is hidden at the specified location. If the toggle parameter is set to true, the window will alternate between showing and hiding.
Window.showAt
The left position of the window
The right position of the window
Show will be prevented from closing when force is false and ‘show-requested’ has been subscribed to for application’s main window
Experimental
Shows a menu on the window. Returns a promise that resolves when the user has either selected an item or closed the menu. (This may take longer than other apis).
Resolves to an object with {result: 'clicked', data }
where data is the data field on the menu item clicked, or {result 'closed'}
when the user doesn't select anything.
Calling this method will close previously opened menus.
Window.showPopupMenu
Updates the window using the passed options. Values that are objects are deep-merged, overwriting only the values that are provided.
Window.updateOptions
Changes a window's options that were defined upon creation. See tutorial
Generated using TypeDoc
Classdesc
A basic window that wraps a native HTML window. Provides more fine-grained control over the window state such as the ability to minimize, maximize, restore, etc. By default a window does not show upon instantiation; instead the window's show() method must be invoked manually. The new window appears in the same process as the parent window. It has the ability to listen for window specific events.
Alias
Window
Hideconstructor