Table of Contents

Class ScreenDetails

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The ScreenDetails interface of the Window Management API represents the details of all the screens available to the user's device.
[Value("ScreenDetails")]
public class ScreenDetails : EventTarget
Inheritance
ScreenDetails
Inherited Members

Remarks

This information is accessed via the GetScreenDetails() method.

NOTE

ScreenDetails is a live object, meaning that it updates as the available screens change. You can therefore keep querying the same object to get updated values, rather than repeatedly calling getScreenDetails().

-Window Management API

See also on MDN

Constructors

ScreenDetails()

public ScreenDetails()

Properties

CurrentScreen

NOTE
Experimental
The currentScreen read-only property of the
ScreenDetails interface contains a single ScreenDetailed object representing detailed information about the screen that the current browser window is displayed in.
[Value("currentScreen")]
public ScreenDetailed CurrentScreen { get; }

Property Value

ScreenDetailed

A ScreenDetailed object.

Remarks

Oncurrentscreenchange

[Value("oncurrentscreenchange")]
public EventHandlerNonNull Oncurrentscreenchange { get; set; }

Property Value

EventHandlerNonNull

Onscreenschange

[Value("onscreenschange")]
public EventHandlerNonNull Onscreenschange { get; set; }

Property Value

EventHandlerNonNull

Screens

NOTE
Experimental
The screens read-only property of the
ScreenDetails interface contains an array of ScreenDetailed objects, each one representing detailed information about one specific screen available to the user's device.
[Value("screens")]
public ScreenDetailed[] Screens { get; }

Property Value

ScreenDetailed[]

An array of ScreenDetailed objects.

NOTE
screens only includes "extended" displays, not those that mirror another display.

Remarks