---
title: "MACaptionAppearanceGetDisplayType(_:)"
framework: mediaaccessibility
role: symbol
role_heading: Function
path: "mediaaccessibility/macaptionappearancegetdisplaytype(_:)"
---

# MACaptionAppearanceGetDisplayType(_:)

Returns the preferred type of captions to display.

## Declaration

```swift
func MACaptionAppearanceGetDisplayType(_ domain: MACaptionAppearanceDomain) -> MACaptionAppearanceDisplayType
```

## Parameters

- `domain`: The domain to retrieve the preference value from. See doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain. Pass doc://com.apple.mediaaccessibility/documentation/MediaAccessibility/MACaptionAppearanceDomain/user unless the system defaults are needed for comparison.

## Return Value

Return Value A value representing options to use only forced captions, allow system locale to override the language of the audio track, or choose the best available captioning track from CC, SDH, or subtitles. See MACaptionAppearanceDisplayType.

## See Also

### General settings

- [kMACaptionAppearanceSettingsChangedNotification](mediaaccessibility/kmacaptionappearancesettingschangednotification.md)
- [MACaptionAppearanceDidDisplayCaptions(_:)](mediaaccessibility/macaptionappearancediddisplaycaptions(_:).md)
- [MACaptionAppearanceCopyPreferredCaptioningMediaCharacteristics(_:)](mediaaccessibility/macaptionappearancecopypreferredcaptioningmediacharacteristics(_:).md)
- [MACaptionAppearanceSetDisplayType(_:_:)](mediaaccessibility/macaptionappearancesetdisplaytype(_:_:).md)
