← Back to Emulation domain

Emulation.setDevicePostureOverride

Start reporting the given posture value to the Device Posture API. This override can also be set in setDeviceMetricsOverride().

Domain: Emulation experimental

Parameters

NameTypeDescription
postureDevicePosture

Example Request

{
  "id": 1,
  "method": "Emulation.setDevicePostureOverride",
  "params": {
    "posture": "posture-value"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Emulation.setDevicePostureOverride', {"posture": "posture-value"});
console.log(result);