Class ScreenDetails
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalScreenDetails 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
ScreenDetailsis 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 callinggetScreenDetails().
Constructors
ScreenDetails()
public ScreenDetails()
Properties
CurrentScreen
NOTE
ExperimentalcurrentScreen read-only property of theScreenDetails 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
Onscreenschange
[Value("onscreenschange")]
public EventHandlerNonNull Onscreenschange { get; set; }
Property Value
Screens
NOTE
Experimentalscreens read-only property of theScreenDetails 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
screensonly includes "extended" displays, not those that mirror another display.