W3cubDocs

/Web APIs

WindowControlsOverlayGeometryChangeEvent: WindowControlsOverlayGeometryChangeEvent() constructor

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The WindowControlsOverlayGeometryChangeEvent() constructor returns a newly created WindowControlsOverlayGeometryChangeEvent, representing the current geometry of a desktop Progressive Web App's title bar area.

Syntax

js

new WindowControlsOverlayGeometryChangeEvent(type, options)

Parameters

The WindowControlsOverlayGeometryChangeEvent() constructor also inherits arguments from Event().

type

A string indicating the event type. It is case-sensitive and browsers set it to geometrychange.

options

An object with the following properties:

visible

A boolean flag that's true when the titlebarAreaRect object's values are not 0.

titlebarAreaRect

A DOMRect representing the position and size of the title bar area.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
WindowControlsOverlayGeometryChangeEvent 105 105 No No 91 No No No No No No No

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/WindowControlsOverlayGeometryChangeEvent/WindowControlsOverlayGeometryChangeEvent