onReadOnlyAccessGranted

abstract fun onReadOnlyAccessGranted(mapChanged: Boolean)

Notification that read-only (shared) access to the map files was granted to the user.

This notification is received when the listener is registered to NdsStoreAccessSync, if the map is available at that time, and also every time the map becomes available again (typically, after a component with write access finishes modifying the map and reverts to read-only access). Upon receiving this notification, the listener should initialize/reset their internal state that depends on map data, in all cases except one: when their map-dependent internal state is already initialized AND mapChanged is equal to false.

A user with read-only access must not modify the map files in any way!

Parameters

mapChanged

true if the map was modified since the last call to onReadOnlyAccessReleaseRequested and false otherwise.