session(_:didUpdateAlgorithmConvergence:for:)
Provides recommended actions the user can take to facilitate the framework’s Camera Assistance.
Declaration
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 is true to notify the app of the current convergence state and user-coaching recommendations.