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

getAnchorPayload

Gets the payload data of a specified anchor. The payload encodes the data needed to localize an anchor across multiple devices or sessions. It can be shared or stored for later use with [trackAnchor].

Declaration

fun getAnchorPayload(anchorId: UUID): String?

Summary

Gets the payload data of a specified anchor. The payload encodes the data needed to localize an anchor across multiple devices or sessions. It can be shared or stored for later use with [trackAnchor].

Returns

Base64-encoded payload if available, null if the anchor is not yet tracked.