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.