Host · interface
DisplayInfo
A display the game could be shown on, as the platform reports it.
Explained in Display and the host.
interface DisplayInfoimport type { DisplayInfo } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
idreadonly | string | Stable for as long as the display is attached. Opaque: do not parse it. |
labelreadonly | string | What to show in a list. A platform that has no name for it repeats the size. |
widthreadonly | number | Logical pixels, which is what a window is sized in. |
heightreadonly | number | |
scalereadonly | number | Device pixels per logical pixel on this display. |
refreshHzreadonly | number | null | Null where the platform will not say, which includes every browser. |
primaryreadonly | boolean |