resize
("resize", (x: number, y: number) => void): this;
Emitted when the device screen changes size.
Returns
this
Handler Function
When the resize
event is fired, attached handler functions are called with two parameters, the width of the screen in pixels (x) and the height of the screen in pixels (y) .