class ARDeviceMap
(Niantic.Lightship.AR.Mapping.ARDeviceMap)
Overview
ARDeviceMap encapsulates device map data generated from mapping process, and provides to serialize/deserialize device map for persistent or sharing purpose.
class ARDeviceMap {
public:
struct SerializableDeviceMap;
struct SerializeableDeviceMapGraph;
struct SerializeableDeviceMapNode;
// properties
List<SerializeableDeviceMapNode> DeviceMapNodes;
SerializeableDeviceMapGraph DeviceMapGraph;
int DefaultAnchorIndex;
// methods
ARDeviceMap();
void AddDeviceMapNode(
ulong subId1,
ulong subId2,
byte[] mapData,
byte[] anchorPayload,
string mapType
);
void SetDeviceMapGraph(byte[] graphData);
virtual byte[] Serialize();
byte[] GetAnchorPayload();
bool HasValidMap();
static ARDeviceMap CreateFromSerializedData(byte[] serializedDeviceMap);
protected:
// fields
List<SerializeableDeviceMapNode> _deviceMapNodes = new();
SerializeableDeviceMapGraph _deviceMapGraph = new();
int _defaultAnchorIndex = 0;
};
Detailed Documentation
ARDeviceMap encapsulates device map data generated from mapping process, and provides to serialize/deserialize device map for persistent or sharing purpose.
.. note::
This is an experimental feature, and is subject to breaking changes or deprecation without notice
Properties
DeviceMapNodes
List<SerializeableDeviceMapNode> DeviceMapNodes
Get a list of SerializeableDeviceMapNode, either mapped on the device or deserialized
.. note::
This is an experimental feature, and is subject to breaking changes or deprecation without notice
DeviceMapGraph
SerializeableDeviceMapGraph DeviceMapGraph