---
title: "stop(pauseARSession:)"
framework: roomplan
role: symbol
role_heading: Instance Method
path: "roomplan/roomcapturesession/stop(pausearsession:)"
---

# stop(pauseARSession:)

Stops the room-capture session and indicates whether the app pauses the underlying AR session.

## Declaration

```swift
func stop(pauseARSession: Bool = true)
```

## Parameters

- `pauseARSession`: A Boolean value that indicates whether the framework automatically pauses the underlying AR session by calling doc://com.apple.documentation/documentation/ARKit/ARSession/pause(). The default value is true. If you pass false, the AR session continues to run.

## Mentioned in

Scanning the rooms of a single structure

## See Also

### Controlling a session

- [run(configuration:)](roomplan/roomcapturesession/run(configuration:).md)
- [RoomCaptureSession.Configuration](roomplan/roomcapturesession/configuration.md)
- [stop()](roomplan/roomcapturesession/stop().md)
