Skip to main content

ARDK for Android/com.nianticlabs.ardk.mapping/MappingStorageSession/add

add

[androidJvm]
fun add(map: ByteArray)

Add serialized map data to the map storage.

Parameters​

androidJvm

mapThe serialized map data to add to storage. The data should be encoded as a DeviceMap protobuf. It can be obtained from getData, getUpdate, or mergeUpdate.

Throws​

ArdkNullArgumentStatusExceptionor ArdkInvalidArgumentStatusException indicating a problem with the map argument. Check ARDK's C logs for more information.