CockpitRecorderController constructor

CockpitRecorderController({
  1. required CockpitInteractionRecorder recorder,
  2. CockpitRecorderExportGateway? exportGateway,
})

Creates a controller over recorder. exportGateway backs saveBundle; the default writes YAML to the system temp directory.

Implementation

CockpitRecorderController({
  required this.recorder,
  CockpitRecorderExportGateway? exportGateway,
}) : _exportGateway = exportGateway ?? CockpitRecorderFileExportGateway() {
  recorder.addListener(_relayEngineChange);
}