---
title: "flushAddedCaptions(upTo:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avcaptiongrouper/flushaddedcaptions(upto:)"
---

# flushAddedCaptions(upTo:)

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

## Declaration

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

## Parameters

- `upToTime`: The time up to which the system flushes the queue.

## Return Value

Return Value An array of zero or more caption groups.
