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

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]. Payloads are only available after the anchor is tracked.

Declaration

fun getAnchorPayload(uuid: 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]. Payloads are only available after the anchor is tracked.

Returns

Base64-encoded payload if available, null if otherwise. Payloads are only available after the anchor is tracked.


ON THIS PAGE