Contents

mediaSelectionOptions(from:with:)

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

Declaration

class func mediaSelectionOptions(from mediaSelectionOptions: [AVMediaSelectionOption], with locale: Locale) -> [AVMediaSelectionOption]

Parameters

  • mediaSelectionOptions:

    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