Skip to main content
←API Reference ←NSDK ←NSDKVps2Session

anchorUpdate


Declaration​

func anchorUpdate(anchorId: NSDKVpsAnchorId) -> VpsAnchorUpdate?

Summary​

Gets the latest tracking update for a specified anchor.
Call this for one-shot queries. For ongoing per-frame updates, subscribe to
anchorUpdated instead.
This tracks the app's own anchors. It is not how the device's relationship to a map is
read: use getPose(location:) to place a geolocation in AR space or
assetTrackingData(assetId:) to get the pose of a VPS asset's origin.

Returns​

The latest anchor update, or nil if the anchor ID is not recognized.

Notice

Precondition: anchorId must be exactly 32 characters long.

Parameters​

NameTypeSummary
anchorIdNSDKVpsAnchorId
The unique identifier of a tracked anchor.