Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The WindowControlsOverlayGeometryChangeEvent() constructor returns a new WindowControlsOverlayGeometryChangeEvent object, 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().
typeA string indicating the event type. It is case-sensitive and browsers set it to geometrychange.
optionsAn object with the following properties:
visible OptionalA boolean flag that's true when the titlebarAreaRect object's values are not 0. Its default value is false.
titlebarAreaRectA DOMRect representing the position and size of the title bar area.
WindowControlsOverlayGeometryChangeEvent interface it belongs to.