onRegionGraphChanged

abstract fun onRegionGraphChanged(regionGraphResult: Result<RegionGraph, MapUpdateError>, mapRegionStates: Map<RegionGraphNodeId, RegionGraphNodeState>)

Called to provide the region graph and subsequent updates to it.

The method is called first after a listener registers for changes in the region graph. Then the method is called after every region graph change in the map. The entire region graph with all map region states is provided on each call.

Parameters

regionGraphResult

The up-to-date region graph or error.

mapRegionStates

The up-to-date map region states.