<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioPlayerNodeCompletionCallbackType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@E@AVAudioPlayerNodeCompletionCallbackType"
  },
  "title" : "AVAudioPlayerNodeCompletionCallbackType"
}
-->

# AVAudioPlayerNodeCompletionCallbackType

Constants that specify when the framework must invoke the completion handler.

```
enum AVAudioPlayerNodeCompletionCallbackType
```

## Topics

### Completion Handler Cases

[`AVAudioPlayerNodeCompletionDataConsumed`](/documentation/AVFAudio/AVAudioPlayerNodeCompletionCallbackType/dataConsumed)

A completion handler that indicates the player consumes the buffer or file data.

[`AVAudioPlayerNodeCompletionDataRendered`](/documentation/AVFAudio/AVAudioPlayerNodeCompletionCallbackType/dataRendered)

A completion handler that indicates the player renders the buffer or file data.

[`AVAudioPlayerNodeCompletionDataPlayedBack`](/documentation/AVFAudio/AVAudioPlayerNodeCompletionCallbackType/dataPlayedBack)

A completion handler that indicates the player finishes the buffer or file data.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)