Skip to main content
←API Reference ←NSDK ←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.

Throws​

  • NSDKError.invalidArgumentor NSDKError.nullArgument indicating a problem with the map argument . Check NSDK's C logs for more information.

Parameters​

NameTypeSummary
mapNSDKBuffer
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:).