Instance Method

initWithType:languageTag:characteristics:displayName:identifier:

Creates a single language option.

Declaration

- (instancetype)initWithType:(MPNowPlayingInfoLanguageOptionType)languageOptionType languageTag:(NSString *)languageTag characteristics:(NSArray<NSString *> *)languageOptionCharacteristics displayName:(NSString *)displayName identifier:(NSString *)identifier;

Parameters

languageOptionType

The type, audio or legible, for the language option.

languageTag

The IETF BCP 47 language tag for the language option.

languageOptionCharacteristics

An array of characteristics that describes the language option.

displayName

The name to be displayed for the language option.

identifier

A unique identifier for the language option.

Return Value

A newly created language option containing the passed 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