Display methods, browser sessions serve 0, phone sessions 0 and computer sessions 2. A method marked not served answers StrategyUnavailable on that kind of session; check the handshake’s capabilities before relying on one.
Display.getModes
Browser: not served
Phone: not served
Computer: served
The desktop’s resolution and every mode Display.setSize can switch to, in screen pixels. Computer sessions only.
| Param | Type | Required | Description |
|---|---|---|---|
idempotencyKey | string | No | Makes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys. |
| Field | Type | Description |
|---|---|---|
current | DisplayMode | |
modes | DisplayMode[] |
Display.setSize
Browser: not served
Phone: not served
Computer: served
Switch the desktop to one of its modes. The live view and recording follow the new size; a live view pauses for 1 to 3 seconds while its stream restarts. A size that isn’t a mode fails with InvalidArgs listing the modes. Computer sessions only.
| Param | Type | Required | Description |
|---|---|---|---|
width | integer | Yes | |
height | integer | Yes | |
idempotencyKey | string | No | Makes a re-send after a reconnect safe: a repeated key returns the recorded response without acting again. See Idempotency keys. |
| Field | Type | Description |
|---|---|---|
current | DisplayMode | |
modes | DisplayMode[] |