---
title: pause()
framework: nearbyinteraction
role: symbol
role_heading: Instance Method
path: nearbyinteraction/nisession/pause()
---

# pause()

Stops sending distance and direction updates to the peer.

## Declaration

```swift
func pause()
```

## Discussion

Discussion To resume a paused session, the app calls run(_:), passing in the session’s configuration. If an app pauses the session for too long, the peer receives session(_:didRemove:reason:) callback with the NINearbyObject.RemovalReason.timeout reason.

## See Also

### Managing life cycle

- [delegate](nearbyinteraction/nisession/delegate.md)
- [invalidate()](nearbyinteraction/nisession/invalidate().md)
