Files

39 lines
517 B
Plaintext
Raw Permalink Normal View History

2023-08-03 08:35:34 +10:00
---
sidebar_position: 9
---
# Screen
These methods provide information about the currently connected screens.
### ScreenGetAll
Returns a list of currently connected screens.
Go: `ScreenGetAll(ctx context.Context) []screen`<br/>
JS: `ScreenGetAll()`
#### Screen
2023-08-04 08:18:34 +10:00
Go struct:
2024-02-08 21:28:28 +11:00
2023-08-03 08:35:34 +10:00
```go
type Screen struct {
IsCurrent bool
IsPrimary bool
Width int
Height int
}
```
2023-08-04 08:18:34 +10:00
Typescript interface:
2024-02-08 21:28:28 +11:00
2023-08-03 08:35:34 +10:00
```ts
interface Screen {
isCurrent: boolean;
isPrimary: boolean;
width : number
height : number
}
```