Skip to main content

StopCallback

Electron APIs / recorder / StopCallback

type StopCallback = (args: RecordStopEventArgs) => void;

Callback invoked when a recording session stops.

Parameters

ParameterTypeDescription
argsRecordStopEventArgsThe arguments containing metadata and results about the stopped recording session.

Returns

void

See

RecordStopEventArgs

Example

const handleStop: StopCallback = (args) => {
console.log("Recording stopped. File saved to:", args.filePath);
};