setARSession(_:)
Provides the framework with an existing AR session to use for Camera Assistance.
Declaration
func setARSession(_ session: ARSession)Parameters
- session:
An existing AR session configured as follows:
A world-tracking configuration (Arworldtrackingconfiguration) with Worldalignment Swift.property
=Gravity, Iscollaborationenabled=false, Userfacetrackingenabled=false, and Initialworldmap=nil.A delegate that returns
falsefor Sessionshouldattemptrelocalization(_:).
Discussion
Set the isCameraAssistanceEnabled flag to true before calling this function. If you enable the flag and run a nearby-interaction session without calling setARSession(_:), the framework creates an internal ARSession instance to which the app has no access.