Table of Contents

Class WindowControlsOverlay

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The WindowControlsOverlay interface of the Window Controls Overlay API exposes information about the geometry
of the title bar area in desktop Progressive Web Apps, and an event to know whenever it changes. This interface is accessible from 'Navigator.WindowControlsOverlay'.
[Value("WindowControlsOverlay")]
public class WindowControlsOverlay : EventTarget
Inheritance
WindowControlsOverlay
Inherited Members

Remarks

Constructors

WindowControlsOverlay()

public WindowControlsOverlay()

Properties

Ongeometrychange

[Value("ongeometrychange")]
public EventHandlerNonNull Ongeometrychange { get; set; }

Property Value

EventHandlerNonNull

Visible

NOTE
Experimental
The visible read-only property of the WindowControlsOverlay interface returns a {{Glossary("Boolean")}} that indicates whether the window controls overlay is visible or not.
[Value("visible")]
public bool Visible { get; }

Property Value

bool

A boolean.

Remarks

The window controls overlay is not be visible if:

-The WindowControlsOverlay interface it belongs to.

See also on MDN

Methods

GetTitlebarAreaRect()

NOTE
Experimental
The getTitlebarAreaRect() method of the 'WindowControlsOverlay' interface queries the current geometry of the title bar area of the Progressive Web App window.
[Value("getTitlebarAreaRect")]
public DOMRect GetTitlebarAreaRect()

Returns

DOMRect

A DOMRect that provides the coordinates and size of the title bar area within the app's content.

Remarks

This only applies to Progressive Web Apps installed on desktop operating systems and which use the Window Controls Overlay API.

See also on MDN