GenerativeUiDisplay
HTTP API schema
The screen a surface is drawn on, so an agent designs for it. The layout size is `widthDp` by `heightDp` (960 by 540 on a 1080p TV): design for that size at ten-foot viewing distance, with large text and few items, and keep content inside `safeAreaInsetDp`.
GenerativeUiDisplay fields
- widthPx
integerRequired Width in pixels of the panel the app renders to.
minimum: 1
- heightPx
integerRequired Height in pixels of the panel the app renders to.
minimum: 1
- widthDp
integerRequired Layout width in density-independent pixels after the TV scale. 960 on a 1080p TV.
minimum: 1
- heightDp
integerRequired Layout height in density-independent pixels after the TV scale. 540 on a 1080p TV.
minimum: 1
- density
numberRequired Pixels per dp.
minimum: 0.1
- safeAreaInsetDp
integerRequired The overscan margin, in dp, that the renderer keeps clear on every edge.
minimum: 0
- viewingDistance
stringRequired How far the viewer sits. TEN_FOOT means a sofa, so text must be large and screens sparse.
Allowed values
TEN_FOOT