WebWindowinterface
Properties (4)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| id⚓︎ | string | x | ID of the window. |
|
| isFocused⚓︎ | boolean | x | Flag indicating whether the window is currently on focus. |
|
| name⚓︎ | string | x | Name of the window. |
|
| zoomFactor⚓︎ | number | x | Retrieves the current zoom factor. |
21 Methods
focus()⚓︎
() => Promise<WebWindow>
Attempts to activate and bring to foreground the window. It is possible to fail due to client browser settings.
moveResize()⚓︎
onChannelsChanged()⚓︎
(callback: (names: string[]) => void) => UnsubscribeFunction
Notifies when the current Channels of the window have changed. Returns a function you can use to unsubscribe from the event.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (names: string[]) => void | Callback for handling the event. Receives the names of the current Channels as an argument. |
onContextUpdated()⚓︎
(callback: (context: any, window: WebWindow) => void) => UnsubscribeFunction
Notifies when a change to the window's context has been made.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (context: any, window: WebWindow) => void | The function which will be invoked when a change to the window's context happens. The function will be called with the new context and window as arguments. |
onFocusChanged()⚓︎
(callback: (window: WebWindow) => void) => UnsubscribeFunction
onZoomFactorChanged()⚓︎
(callback: (window: WebWindow) => void) => UnsubscribeFunction
setContext()⚓︎
(context: any) => Promise<WebWindow>
Sets new context for the window.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| context⚓︎ | any | The new context object for the window. |
setTitle()⚓︎
(title: string) => Promise<WebWindow>
Sets a new title for the window
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| title⚓︎ | string | The new title value. |
setZoomFactor()⚓︎
(factor: number) => Promise<WebWindow>
Changes the zoom level.
io.Connect Browser 4.1Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| factor⚓︎ | number | Zoom factor. |