Class

MPNowPlayingInfoLanguageOption

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

Declaration

class MPNowPlayingInfoLanguageOption : NSObject

Overview

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

Topics

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.

Relationships

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.

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