---
title: "session(_:didUpdateAlgorithmConvergence:for:)"
framework: nearbyinteraction
role: symbol
role_heading: Instance Method
path: "nearbyinteraction/nisessiondelegate/session(_:didupdatealgorithmconvergence:for:)"
---

# session(_:didUpdateAlgorithmConvergence:for:)

Provides recommended actions the user can take to facilitate the framework’s Camera Assistance.

## Declaration

```swift
optional func session(_ session: NISession, didUpdateAlgorithmConvergence convergence: NIAlgorithmConvergence, for object: NINearbyObject?)
```

## Parameters

- `session`: The session for which the app leverages Camera Assistance.
- `convergence`: The framework’s state and user recommendations for Camera Assistance.
- `object`: The peer device or third-party accessory. If nil, the status refers to the session.

## Discussion

Discussion The framework invokes this callback when isCameraAssistanceEnabled is true to notify the app of the current convergence state and user-coaching recommendations.

## See Also

### Coaching the user

- [NIAlgorithmConvergenceStatus](nearbyinteraction/nialgorithmconvergencestatus-2fnve.md)
- [NIAlgorithmConvergenceStatus.Reason](nearbyinteraction/nialgorithmconvergencestatus-2fnve/reason.md)
