Back to Wails

Screen

website/versioned_docs/version-v2.11.0/reference/runtime/screen.mdx

2.12.0486 B
Original Source

Screen

These methods provide information about the currently connected screens.

ScreenGetAll

Returns a list of currently connected screens.

Go: ScreenGetAll(ctx context.Context) []screen

JS: ScreenGetAll()

Screen

Go struct:

go
type Screen struct {
	IsCurrent bool
	IsPrimary bool
	Width     int
	Height    int
}

Typescript interface:

ts
interface Screen {
    isCurrent: boolean;
    isPrimary: boolean;
    width : number
    height : number
}