onStatesChanged

open fun onStatesChanged(stateInfo: RegionStateInfo)

Called to provide the changed RegionStates.

The method is called after every relevant RegionState change in the map.

This method reports delta updates. The stateInfo contains state information of only those Regions that changed since the last call.

Note: When the update state has been determined for all regions for the first time, this method is guaranteed to be called once with a batch containing all regions and their states, rather than being split into multiple calls.

Parameters

stateInfo

A data structure with the changed RegionStates.