setRecording method

Future<void> setRecording(
  1. bool shouldRecord,
  2. ServiceName service
)

Set the recording state for the service.

Implementation

Future<void> setRecording(bool shouldRecord, ServiceName service) async {
  await _client.send('BackgroundService.setRecording', {
    'shouldRecord': shouldRecord,
    'service': service,
  });
}