anchorPayload
Declaration
func anchorPayload(anchorId: NSDKVpsAnchorId) -> NSDKAsyncState<String, Never>?
Summary
Returns
.inProgress(nil): The anchor is tracked but the payload is not yet available.
-.success(payload): The base64-encoded payload is ready.
-nil: No anchor withanchorIdwas found.
Parameters
| Name | Type | Summary |
|---|---|---|
| anchorId | NSDKVpsAnchorId | The unique identifier of the anchor. |
Gets the payload data of a specified anchor.
The payload encodes the data needed to relocalize an anchor across devices or sessions.
It can be stored and used later with
trackAnchor(payload:).For anchors created via
createAnchor(at:), subscribe tocreatedAnchorPayloadinstead of polling this method — the session handles polling automatically.
- Precondition:
anchorIdmust be exactly 32 characters long.