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

removeAnchor


Declaration​

fun removeAnchor(anchorId: UUID)

Summary​

Stop tracking an anchor.


This removes one of the app's own anchors. It is not how localization to a map is stopped:
use stopLocalize to drop a site's assets from the localization targets.

Throws​

  • NsdkInvalidArgumentStatusException — if no anchor with the id anchorId has been created or added for tracking. Check NSDK's C logs for more information.

Parameters​

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