Skip to main content

ARDK for Android/com.nianticlabs.ardk.vps/VPSSession/trackAnchor

trackAnchor

[androidJvm]
fun trackAnchor(payload: String): UUID

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.

Return​

The unique identifier of the anchor encoded in the payload

Parameters​

androidJvm

payloadBase64-encoded anchor payload

See also​

VPSSession.createAnchor
VPSSession.removeAnchor
VPSSession.getAnchorPayload

Throws​

ARDKStatusException with code ARDKStatus.invalidArgument if the payload is invalid. Check ARDK's C logs for more information.