<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioRecorderDelegate/audioRecorderDidFinishRecording(_:successfully:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(pl)AVAudioRecorderDelegate(im)audioRecorderDidFinishRecording:successfully:"
  },
  "title" : "audioRecorderDidFinishRecording(_:successfully:)"
}
-->

# audioRecorderDidFinishRecording(_:successfully:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)