---
title: "selectedMediaPresentationSettings(for:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritem/selectedmediapresentationsettings(for:)"
---

# selectedMediaPresentationSettings(for:)

Indicates the media presentation settings that have most recently been selected for each AVMediaPresentationSelector of the AVCustomMediaSelectionScheme of the specified AVMediaSelectionGroup.

## Declaration

```swift
func selectedMediaPresentationSettings(for mediaSelectionGroup: AVMediaSelectionGroup) -> [AVMediaPresentationSelector : Any]
```

## Parameters

- `mediaSelectionGroup`: An AVMediaSelectionGroup obtained from the receiver’s asset for which the currently selected media presentation settings are desired.

## Return Value

Return Value A dictionary with AVMediaPresentationSelectors as keys and AVMediaPresentationSettings as values, providing the most recently selected setting for each selector or, if no setting has previously been selected, NSNull.

## See Also

### Selecting media options

- [select(_:for:)](avfoundation/avplayeritem/select(_:for:).md)
- [preferredCustomMediaSelectionSchemes](avfoundation/avplayeritem/preferredcustommediaselectionschemes.md)
- [effectiveMediaPresentationSettings(for:)](avfoundation/avplayeritem/effectivemediapresentationsettings(for:).md)
- [selectMediaPresentationLanguage(_:for:)](avfoundation/avplayeritem/selectmediapresentationlanguage(_:for:).md)
- [selectedMediaPresentationLanguage(for:)](avfoundation/avplayeritem/selectedmediapresentationlanguage(for:).md)
- [currentMediaSelection](avfoundation/avplayeritem/currentmediaselection.md)
- [select(_:in:)](avfoundation/avplayeritem/select(_:in:).md)
- [selectMediaOptionAutomatically(in:)](avfoundation/avplayeritem/selectmediaoptionautomatically(in:).md)
