ARDK for Android/com.nianticlabs.ardk.mapping/MappingStorageSession/extractMetadata
extractMetadata
[androidJvm]
fun extractMetadata(anchorPayload: String, map: ByteArray): MapMetadata?
Extract the metadata from a map relative to a specified anchor.
Render the feature points in the metadata relative to the specified anchor to visualize the map. This is only possible when the anchor is linked directly to the map's node(s), or if the anchor's nodes are reachable to the map's nodes from the currently active transform graph.
Return
The extracted metadata if successful, or null if no metadata exists.
Parameters
androidJvm
| anchorPayload | The base64-encoded payload of the anchor that the returned points will be relative to. |
| map | The map buffer to extract metadata from. It should be encoded as a DeviceMap protobuf. |
Throws
| ArdkNullArgumentStatusException | or ArdkInvalidArgumentStatusException indicating a problem with the either argument. Check ARDK's C logs for more information. |