Window Controls Overlay API
The WindowControlsOverlayGeometryChangeEvent() constructor returns a new WindowControlsOverlayGeometryChangeEvent object, 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.Event.
type- : A string indicating the event type. It is case-sensitive and browsers set it to
geometrychange.
- : A string indicating the event type. It is case-sensitive and browsers set it to
options- : An object with the following properties:
visible- : A boolean flag that's true when the
titlebarAreaRectobject's values are not 0. Its default value isfalse.
- : A boolean flag that's true when the
titlebarAreaRect- : A DOMRect representing the position and size of the title bar area.
- : An object with the following properties:
Specifications
Browser compatibility
See also
- The WindowControlsOverlayGeometryChangeEvent interface it belongs to.
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
