MACaptionAppearanceCopySelectedLanguages(_:)
Returns the preferred caption languages.
Declaration
func MACaptionAppearanceCopySelectedLanguages(_ domain: MACaptionAppearanceDomain) -> Unmanaged<CFArray>Parameters
- domain:
The domain to retrieve the preference value from. See Macaptionappearancedomain. Pass User unless the system defaults are needed for comparison.
Return Value
An ordered array of preferred canonical language identifiers.
Discussion
Languages added using the MACaptionAppearanceAddSelectedLanguage(_:_:) function are normalized. As a result, the contents of the returned array may have slightly different strings from those passed into MACaptionAppearanceAddSelectedLanguage(_:_:).