Instance Property


The IETF BCP 47 language tag associated with the option


var extendedLanguageTag: String? { get }


This property may be nil indicating that the underlying media presented when the option is selected carries no language information. This can occur with media formats for which language information is optional, such as HTTP Live Streaming playlists, or that do not accommodate language information in machine-readable form.

Clients that are filtering media selection options by language should be prepared to handle cases in which this value is nil. Further, they should be prepared to handle cases in which an extendedLanguageTag is present but indicates that the language is “undetermined” (a language value of @"und", as defined in ISO 639-2).

See Also

Getting the Language and Locale Settings

var displayName: String

A string suitable for display using the current system locale.

func displayName(with: Locale) -> String

Returns a string suitable for display using the specified locale.

var locale: Locale?

The locale for which the media option was authored.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software