UnitySwiftKotlinReading this with an AI agent?Read this page as plain text instead: https://www.nianticspatial.com/docs/llms-api-swift/NSDK.NSDKMapStorage.method-mapData.txt — same content, easier to parse than this HTML, with each platform's steps kept separate.Every page in the current release follows the same pattern, so you can build the URL directly instead of fetching an index: a page at /api/swift/<page>/ is at /llms-api-swift/<page>.txt.For every page in this section, read https://www.nianticspatial.com/docs/llms-api-swift.txt; for every section of these docs, read https://www.nianticspatial.com/docs/llms.txt.←API Reference Return to API Reference index←packageNSDK NSDK←classNSDKMapStorage NSDKMapStorage Method mapData mapData Declaration func mapData() -> NSDKBuffer? Summary Gets the complete map data. This function returns all the map data accumulated during the AR session, serialized as a DeviceMap protobuf. This data can be saved, shared, and/or used for localization. Returns The serialized map data buffer if available, nil if no map data exists.
Gets the complete map data.
This function returns all the map data accumulated during the AR session, serialized as a
DeviceMap protobuf. This data can be saved, shared, and/or used for localization.