---
title: "audioRecorderDidFinishRecording(_:successfully:)"
framework: avfaudio
role: symbol
role_heading: Instance Method
path: "avfaudio/avaudiorecorderdelegate/audiorecorderdidfinishrecording(_:successfully:)"
---

# audioRecorderDidFinishRecording(_:successfully:)

Tells the delegate when recording stops or finishes due to reaching its time limit.

## Declaration

```swift
optional func audioRecorderDidFinishRecording(_ recorder: AVAudioRecorder, successfully flag: Bool)
```

## Parameters

- `recorder`: The audio recorder that finished recording.
- `flag`: A Boolean value that indicates whether the recording stopped successfully.

## Discussion

Discussion The system doesn’t call this method if the recorder stops due to an interruption.
