---
title: "only(_:)"
framework: avkit
role: symbol
role_heading: Type Method
path: "avkit/avexperiencecontroller/experiences/only(_:)"
---

# only(_:)

Returns a set of experiences for the provided list.

## Declaration

```swift
static func only<C>(_ experiences: C) -> AVExperienceController.Experiences where C : Collection, C.Element == AVExperienceController.Experience
```

## Parameters

- `experiences`: The experiences to include. Order and duplication are not significant.

## Discussion

Discussion Use this method when the use case requires a specific set of experiences.

## See Also

### Defining experiences

- [recommended(excluding:including:)](avkit/avexperiencecontroller/experiences/recommended(excluding:including:).md)
