<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaAccessibility",
  "identifier" : "/documentation/MediaAccessibility/MACaptionAppearanceGetDisplayType(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Media Accessibility"
    ],
    "preciseIdentifier" : "c:@F@MACaptionAppearanceGetDisplayType"
  },
  "title" : "MACaptionAppearanceGetDisplayType(_:)"
}
-->

# MACaptionAppearanceGetDisplayType(_:)

Returns the preferred type of captions to display.

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

## Parameters

`domain`

The domain to retrieve the preference value from. See [`MACaptionAppearanceDomain`](/documentation/MediaAccessibility/MACaptionAppearanceDomain). Pass [`MACaptionAppearanceDomain.user`](/documentation/MediaAccessibility/MACaptionAppearanceDomain/user) unless the system defaults are needed for comparison.

## 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`](/documentation/MediaAccessibility/MACaptionAppearanceDisplayType).

---

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)