ARDK for Android/com.nianticlabs.ardk.mapping/MappingStorageSession
MappingStorageSession
[androidJvm]
class MappingStorageSession : SessionBase<MappingStorageSession>
A storage system for managing device-generated maps.
The map storage feature provides capabilities for capturing, storing, and managing map data from AR sessions. This data can be persisted and used for Visual Positioning System (VPS) localization and map updates.
Functions
| Name | Summary |
|---|---|
| acquire | [androidJvm] @Synchronized fun acquire(): MappingStorageSession |
| add | [androidJvm] fun add(map: ByteArray) Add serialized map data to the map storage. |
| clear | [androidJvm] fun clear() Clear the map storage. |
| close | [androidJvm] @Synchronized open override fun close() |
| createRootAnchor | [androidJvm] fun createRootAnchor(): String? Creates an anchor on the existing map located at the origin of the current AR session, if possible. |
| extractMetadata | [androidJvm] fun extractMetadata(anchorPayload: String, map: ByteArray): MapMetadata? Extract the metadata from a map relative to a specified anchor. |
| getData | [androidJvm] fun getData(): ByteArray? Get the complete map data. |
| getUpdate | [androidJvm] fun getUpdate(): ByteArray? Get the latest map update data. |
| mergeUpdate | [androidJvm] fun mergeUpdate(existingMap: ByteArray, mapUpdate: ByteArray): ByteArray? Merge a map update into an existing map. |