Skip to content

Commit 6c8cca1

Browse files
committed
docs: remove getInfo method
1 parent d2af3c9 commit 6c8cca1

File tree

5 files changed

+15
-25
lines changed

5 files changed

+15
-25
lines changed

docs/breaking-changes.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ windowManager.getScaleFactor(windowManager.getActiveWindow().getMonitor());
1313
windowManager.getActiveWindow().getMonitor().getScaleFactor();
1414
```
1515

16-
### `window.getMonitor(): number`
17-
18-
Now the `window.getMonitor` method returns [`Monitor`](monitor.md) object.
19-
2016
### `windowManager.requestAccessibility()` `macOS`
2117

2218
The `windowManager.requestAccessibility` method won't be required before each operation on windows anymore. Only on:
@@ -27,3 +23,18 @@ The `windowManager.requestAccessibility` method won't be required before each op
2723
- `window.restore`
2824
- `window.bringToTop`
2925
- `window.getTitle`
26+
27+
### `window.getMonitor(): number`
28+
29+
Now the `window.getMonitor` method returns [`Monitor`](monitor.md) object.
30+
31+
### `window.getInfo()`
32+
33+
`window.getInfo` method has been removed.
34+
35+
```typescript
36+
// Deprecated
37+
const { title } = window.getInfo();
38+
// Replace with
39+
const title = window.getTitle();
40+
```

docs/monitor-info.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/monitor.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ Gets monitor working area bounds.
2929

3030
- Returns [`Rectangle`](rectangle.md)
3131

32-
#### monitor.getInfo() `Windows`
33-
34-
Returns [`MonitorInfo`](monitor-info.md)
35-
3632
#### monitor.isPrimary() `Windows`
3733

3834
Whether the monitor is primary.

docs/window-info.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/window.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ Resizes and moves the window to the supplied bounds. Any properties that are not
2828
window.setBounds({ height: 50 });
2929
```
3030

31-
#### win.getInfo() `Windows` `macOS`
32-
33-
Returns [`WindowInfo`](window-info.md)
34-
3531
#### win.getTitle() `Windows` `macOS`
3632

3733
- Returns `string`

0 commit comments

Comments
 (0)