← Back to BackgroundService domain

BackgroundService.setRecording

Set the recording state for the service.

Domain: BackgroundService experimental

Parameters

NameTypeDescription
shouldRecordboolean
serviceServiceName

Example Request

{
  "id": 1,
  "method": "BackgroundService.setRecording",
  "params": {
    "shouldRecord": true,
    "service": "service-value"
  }
}

Example Response

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

Usage in Node.js

const result = await send('BackgroundService.setRecording', {"shouldRecord": true, "service": "service-value"});
console.log(result);