2.9 KiB
2.9 KiB
Home > puppeteer > Protocol > Page > SetDeviceMetricsOverrideRequest
Protocol.Page.SetDeviceMetricsOverrideRequest interface
Signature:
export interface SetDeviceMetricsOverrideRequest
Properties
Property | Type | Description |
---|---|---|
deviceScaleFactor | number | Overriding device scale factor value. 0 disables the override. |
dontSetVisibleSize | boolean | Do not set visible view size, rely upon explicit setVisibleSize call. |
height | integer | Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. |
mobile | boolean | Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. |
positionX | integer | Overriding view X position on screen in pixels (minimum 0, maximum 10000000). |
positionY | integer | Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). |
scale | number | Scale to apply to resulting view image. |
screenHeight | integer | Overriding screen height value in pixels (minimum 0, maximum 10000000). |
screenOrientation | Emulation.ScreenOrientation | Screen orientation override. |
screenWidth | integer | Overriding screen width value in pixels (minimum 0, maximum 10000000). |
viewport | Viewport | The viewport dimensions and scale. If not set, the override is cleared. |
width | integer | Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. |