<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "NearbyInteraction",
  "identifier" : "/documentation/NearbyInteraction/NISessionDelegate/session(_:didUpdateAlgorithmConvergence:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Nearby Interaction"
    ],
    "preciseIdentifier" : "c:objc(pl)NISessionDelegate(im)session:didUpdateAlgorithmConvergence:forObject:"
  },
  "title" : "session(_:didUpdateAlgorithmConvergence:for:)"
}
-->

# session(_:didUpdateAlgorithmConvergence:for:)

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

```
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

The framework invokes this callback when [`isCameraAssistanceEnabled`](/documentation/NearbyInteraction/NINearbyPeerConfiguration/isCameraAssistanceEnabled) is `true` to notify the app of the current convergence state and user-coaching recommendations.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)