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.
- Precondition: anchorId must be exactly 32 characters long.

Returns​

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

Parameters​

NameTypeSummary
anchorIdNSDKVpsAnchorId
The unique identifier of a tracked anchor.