Instance Method

session:didAddAnchors:

Tells the delegate that one or more anchors have been added to the session.

Declaration

- (void)session:(ARSession *)session didAddAnchors:(NSArray<ARAnchor *> *)anchors;

Parameters

session

The session providing information.

anchors

The anchors newly added to the session.

Discussion

Depending on the session configuration, ARKit may automatically add anchors to a session.

If you display an AR experience using SceneKit or SpriteKit, you can instead implement one of the following methods instead to track not only the addition of anchors to the session but also how to add SceneKit or SpriteKit content to the corresponding scene:

See Also

Handling Content Updates

- session:didUpdateAnchors:

Tells the delegate that the session has adjusted the properties of one or more anchors.

- session:didRemoveAnchors:

Tells the delegate that one or more anchors have been removed from the session.