Skip to main content
Version: 3.6

class ARPersistentAnchorPayload

(Niantic.Lightship.AR.PersistentAnchors.ARPersistentAnchorPayload)

Overview

The ARPersistentAnchorPayload is data used to save and restore persistent anchors.

class ARPersistentAnchorPayload {
public:
// fields

byte[] Data;

// methods

ARPersistentAnchorPayload(byte[] data);
ARPersistentAnchorPayload(string data);
string ToBase64();
};

Detailed Documentation

The ARPersistentAnchorPayload is data used to save and restore persistent anchors.

Fields

Data

byte[] Data

The data associated with the payload

Methods

ARPersistentAnchorPayload

ARPersistentAnchorPayload(byte[] data)

Creates a new ARPersistentAnchorPayload

    Parameters:

    data - The data associated with the payload

ARPersistentAnchorPayload

ARPersistentAnchorPayload(string data)

Creates a new ARPersistentAnchorPayload

    Parameters:

    data - The base 64 string to create the payload from

ToBase64

string ToBase64()

Converts a payload to a base 64 string.

    Returns:

    The string representation of the payload. Returns null if no data exists in the payload.