Skip to main content
←API Reference ←com.nianticspatial.nsdk.vps2 ←Vps2Session

getAnchorUpdate


Declaration​

fun getAnchorUpdate(anchorId: UUID): AnchorUpdate

Summary​

Gets the latest tracking update for a specified anchor.


This tracks the app's own anchors. It is not how the device's relationship to a map is read:
use getPose to place a geolocation in AR space or getAssetTrackingData to get the pose
of a VPS asset's origin.

Returns​

The latest update for the anchor with the id anchorId.

Throws​

  • NsdkInvalidArgumentStatusException — if no anchor with the id anchorId has been created or added for tracking.

Parameters​

NameTypeSummary
anchorIdUUID
An NSDK [UUID] (ByteArray, not java.util.UUID) as returned by [trackAnchor] or [createAnchor].