---
title: allowedSubtitleOptionLanguages
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avplayerviewcontroller/allowedsubtitleoptionlanguages
---

# allowedSubtitleOptionLanguages

An array of language codes that restrict the set of subtitle languages available to the user.

## Declaration

```swift
var allowedSubtitleOptionLanguages: [String]? { get set }
```

## Discussion

Discussion When this property value is nil (the default), the player view controller UI presents all available subtitle options. The Auto subtitle option is only available when this property value is nil and requiresFullSubtitles is false. To allow only a restricted subset of subtitles, set this property value to an array of BCP 47 language codes. Restricting the set of subtitle languages makes the Auto option unavailable.

## See Also

### Managing subtitles

- [requiresFullSubtitles](avkit/avplayerviewcontroller/requiresfullsubtitles.md)
- [mediaCharacteristicsForSupportedCustomMediaSelectionSchemes](avkit/avplayerviewcontroller/mediacharacteristicsforsupportedcustommediaselectionschemes.md)
