A set of interfaces used to set the language option for the now-playing item.


class MPNowPlayingInfoLanguageOption : NSObject


The MPNowPlayingInfoLanguageOption and MPNowPlayingInfoLanguageOptionGroup classes provide interfaces for setting information about language options; for example audio and subtitles, in the now playing information area.


Retrieving Language Option Properties

var displayName: String?

The display name for a language option.

var identifier: String?

The unique identifier for the language option.

var languageOptionCharacteristics: [String]?

The characteristics that describe the content of the language option.

var languageTag: String?

The abbreviated language code for the language option.

enum MPNowPlayingInfoLanguageOptionType

The language option type used for the now playing item.

Retrieving a Language Option Based on System Preferences

func isAutomaticAudibleLanguageOption() -> Bool

Returns a Boolean value that determines whether to use the best audible language option based on the system preferences.

func isAutomaticLegibleLanguageOption() -> Bool

Returns a Boolean value that determines whether to use the best legible language option based on the system preferences.


Inherits From

Conforms To

See Also

Now Playing Information

Becoming a Now Playable App

Ensure your app is eligible to become the “Now Playing” app by adopting best practices for providing Now Playing Info and registering for Remote Command Center actions.

class MPNowPlayingInfoCenter

An object that you use to set now-playing information for media being played by your app.

class MPNowPlayingInfoLanguageOptionGroup

A grouped set of language options where only a single language option can be active at a time.

Language Option Characteristic Constants

The constants used to define language characteristics.