<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptionGrouper/flushAddedCaptions(upTo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptionGrouper(im)flushAddedCaptionsIntoGroupsUpToTime:"
  },
  "title" : "flushAddedCaptions(upTo:)"
}
-->

# flushAddedCaptions(upTo:)

Creates caption groups for the captions you enqueue up to the time.

```
func flushAddedCaptions(upTo upToTime: CMTime) -> [AVCaptionGroup]
```

## Parameters

`upToTime`

The time up to which the system flushes the queue.

## Return Value

An array of zero or more caption groups.

## Discussion

---

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)