Skip to main content
API Reference SwiftyNsdk NsdkMapStorage

addMap

Adds previously serialized map data to the map storage....

Declaration

func addMap(map: NsdkBuffer) throws

Summary

Adds previously serialized map data to the map storage.
- Parameter map: The serialized map data to add. It should be encoded as a
DeviceMap protobuf and can be obtained from mapData(), mapUpdate(),
or mergeMapUpdate(existingMap:mapUpdate:).
- Throws: NsdkError.invalidArgumentor NsdkError.nullArgument
indicating a problem with the map argument . Check NSDK's C logs for more information.


ON THIS PAGE