The WindowControlsOverlayGeometryChangeEvent()
constructor returns a newly created WindowControlsOverlayGeometryChangeEvent
, representing the current geometry of a desktop Progressive Web App's title bar area.
WindowControlsOverlayGeometryChangeEvent()
Syntax
new WindowControlsOverlayGeometryChangeEvent(type, {visible: aBooleanValue, titlebarAreaRect: aDOMRectValue});
Arguments
The WindowControlsOverlayGeometryChangeEvent()
constructor also inherits arguments from Event()
.
- type
- : A
DOMString
indicating the event type. Its value must begeometrychange
and is case-sensitive.
- : A
-
options
- : An object with the following properties:
-
visible
- : A boolean flag that's true when the
titleBarAreaRect
object's values are not 0.
- : A boolean flag that's true when the
-
titleBarAreaRect
- : A
DOMRect
representing the position and size of the title bar area.
- : A
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 |
98
|
98
|
No
|
No
|
84
|
No
|
No
|
No
|
No
|
No
|
No
|
No
|
See also
- The
WindowControlsOverlayGeometryChangeEvent
interface it belongs to.
© 2005–2021 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