Skip to main content
API Reference com.nianticspatial.nsdk.vps VPSSession

trackAnchor

Requests to start tracking an anchor specified by a payload. A VPS payload contains all the data needed to localize at a VPS-activated location. A default payload for a VPS-activated location can be obtained from the "blob" field in the details view of an entry in the Geospatial Browser, or via [getAnchorPayload] for user-generated anchors. The anchor will automatically be added to tracked anchors and will emit updates through the [anchorUpdates] Flow.

Declaration

fun trackAnchor(payload: String): UUID

Summary

Requests to start tracking an anchor specified by a payload. A VPS payload contains all the data needed to localize at a VPS-activated location. A default payload for a VPS-activated location can be obtained from the "blob" field in the details view of an entry in the Geospatial Browser, or via [getAnchorPayload] for user-generated anchors. The anchor will automatically be added to tracked anchors and will emit updates through the [anchorUpdates] Flow.

Returns

The unique identifier of the anchor encoded in the payload


ON THIS PAGE