Adds a preference for caption language to stack of languages.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
A canonical language identifier (see CFLocale) of the preferred caption language.
true if addition was successful;
false if an error occurred. Errors are most likely the result of invalid language codes.
The added language will appear in the array returned by
MACaption. Call the
MACaption function anytime a user selects a specific captioning language from a pop-up menu or other UI affordance. For example, an AVFoundation client may execute the following code: