WindowControlsOverlayGeometryChangeEvent()

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. Its value must be geometrychange and is case-sensitive.

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

Specification
Window Controls Overlay
# windowcontrolsoverlay-interface

Browser compatibility

BCD tables only load in the browser

See also