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