WindowControlsOverlayGeometryChangeEvent: WindowControlsOverlayGeometryChangeEvent() constructor
The WindowControlsOverlayGeometryChangeEvent()
constructor returns a newly created WindowControlsOverlayGeometryChangeEvent
, representing the current geometry of a desktop Progressive Web App's title bar area.
Syntax
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