Access via:
io.windows.groupsGroupsAPIinterface
API for managing window groups.
Properties (1)
| Property | Type | Default | Required | Description |
|---|---|---|---|---|
| my⚓︎ | Group | x | Returns the current group of the window. |
12 Methods
close()⚓︎
(group: Group | string, options?: CloseOptions) => Promise<void>
Closes a window group.
io.Connect Desktop 9.3Parameters (2)
| Name | Type | Required | Description |
|---|---|---|---|
| group⚓︎ | Group | string | The |
|
| options⚓︎ | CloseOptions | x | Options for closing the group that can be used to prevent closing the group and control whether to show a confirmation dialog before closing it. |
create()⚓︎
(options: CreateGroupsOptions) => Promise<Group[]>
Creates window groups.
io.Connect Desktop 9.3Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| options⚓︎ | CreateGroupsOptions | Options for creating window groups. |
findGroupByWindow()⚓︎
(winId: string | IOConnectWindow, success?: (group: Group) => void, error?: (error: string) => void) => Group
Finds a group by a provided window object or window ID.
Parameters (3)
| Name | Type | Required | Description |
|---|---|---|---|
| winId⚓︎ | string | IOConnectWindow | An io.Connect Window object or a window ID by which to find a window group. |
|
| success⚓︎ | (group: Group) => void | x | Callback function for handling the successfully returned result. |
| error⚓︎ | (error: string) => void | x | Callback function for handling errors. |
hibernate()⚓︎
(groupId: string) => Promise<string>
Hibernates a window group.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| groupId⚓︎ | string | ID of the window group to hibernate. |
list()⚓︎
onGroupAdded()⚓︎
(callback: (group: Group) => void) => UnsubscribeFunction
onGroupRemoved()⚓︎
(callback: (group: Group) => void) => UnsubscribeFunction
onHibernated()⚓︎
(callback?: (groupId: string) => void) => () => void
Notifies when a window group is hibernated.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| callback⚓︎ | (groupId: string) => void | x | Callback function for handling the event. |
resume()⚓︎
(groupId: string, activate?: boolean) => Promise<void>