---
title: "automatic(_:_:)"
framework: foveatedstreaming
role: symbol
role_heading: Type Method
path: "foveatedstreaming/foveatedstreamingsession/immersivepresentationbehaviors-swift.struct/automatic(_:_:)"
---

# automatic(_:_:)

Opens the immersive space when the session connects or resumes and dismisses the immersive space when the session pauses or disconnects.

## Declaration

```swift
static func automatic(_ open: OpenImmersiveSpaceAction, _ dismiss: DismissImmersiveSpaceAction) -> FoveatedStreamingSession.ImmersivePresentationBehaviors
```

## Parameters

- `open`: The action that opens the immersive space.
- `dismiss`: The action that dismisses the immersive space.
