Type Method

mediaSelectionOptionsFromArray:withoutMediaCharacteristics:

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

Declaration

+ (NSArray<AVMediaSelectionOption *> *)mediaSelectionOptionsFromArray:(NSArray<AVMediaSelectionOption *> *)mediaSelectionOptions withoutMediaCharacteristics:(NSArray<AVMediaCharacteristic> *)mediaCharacteristics;

Parameters

array

An array of AVMediaSelectionOption objects to be filtered.

mediaCharacteristics

The media characteristics that must not be present for a media selection option to be present in the output array.

Return Value

An array containing the media selection options from array that lack the media characteristics in mediaCharacteristics.

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:withLocale:

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

+ mediaSelectionOptionsFromArray:withMediaCharacteristics:

Returns an array containing the media selection options from a given array that 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.