---
title: "sessionWasInterrupted(_:)"
framework: arkit
role: symbol
role_heading: Instance Method
path: "arkit/arsessionobserver/sessionwasinterrupted(_:)"
---

# sessionWasInterrupted(_:)

Tells the delegate that the session has temporarily stopped processing frames and tracking device position.

## Declaration

```swift
optional func sessionWasInterrupted(_ session: ARSession)
```

## Parameters

- `session`: The session providing information.

## Discussion

Discussion A session is interrupted when it fails to receive camera or motion sensing data. Session interruptions occur whenever camera capture is not available—for example, when your app is in the background or there are multiple foreground apps—or when the device is too busy to process motion sensor data. important: An interruption is equivalent to manually pausing the session. Do not call pause() in response to this callback, as that prevents your app from being notified when the interruption ends.

## See Also

### Handling Interruptions

- [sessionInterruptionEnded(_:)](arkit/arsessionobserver/sessioninterruptionended(_:).md)
- [sessionShouldAttemptRelocalization(_:)](arkit/arsessionobserver/sessionshouldattemptrelocalization(_:).md)
