Type Method

mediaSelectionOptionsFromArray:withLocale:

Returns an array containing the media selection options from a given array that match the specified locale.

Declaration

+ (NSArray<AVMediaSelectionOption *> *)mediaSelectionOptionsFromArray:(NSArray<AVMediaSelectionOption *> *)mediaSelectionOptions withLocale:(NSLocale *)locale;

Parameters

array

An array of AVMediaSelectionOption objects to be filtered.

locale

The locale that must be matched for a media selection option to be copied to the output array.

Return Value

An array containing the media selection options from array that match the locale.

See Also

Filtering Selection Options

- makeNowPlayingInfoLanguageOptionGroup

Creates a language option group from the media selection group.

+ playableMediaSelectionOptionsFromArray:

Returns an array containing the media selection options from a given array that are playable.

+ mediaSelectionOptionsFromArray:withMediaCharacteristics:

Returns an array containing the media selection options from a given array that match given media characteristics.

+ mediaSelectionOptionsFromArray:withoutMediaCharacteristics:

Returns an array containing the media selection options from a given array that do not match given media characteristics.

+ mediaSelectionOptionsFromArray:filteredAndSortedAccordingToPreferredLanguages:

Returns an array of media selection options, filtering them according to whether their locales match one of the specified languages.