sync Source Settings
Synchronizes the SnapSettings.sourceSettings collection based on SnapSource objects in the currently connected com.arcgismaps.mapping.ArcGISMap. Call this method to populate SnapSettings.sourceSettings with a SnapSourceSettings for each valid SnapSource present in the com.arcgismaps.mapping.view.MapView currently connected to this SnapSettings via GeometryEditor.snapSettings, and com.arcgismaps.mapping.view.MapView.geometryEditor. If there is no connected com.arcgismaps.mapping.view.MapView, or the map view and the associated map contains no SnapSource objects valid for snapping, then the collection will be empty after this method returns.
The order of SnapSourceSettings objects will match the order that the associated SnapSource objects appear in the com.arcgismaps.mapping.ArcGISMap.operationalLayers and com.arcgismaps.mapping.view.MapView.graphicsOverlays collections, with objects from com.arcgismaps.mapping.ArcGISMap.operationalLayers appearing first, followed by com.arcgismaps.mapping.view.MapView.graphicsOverlays objects, in order. The collection will not contain a SnapSourceSettings for any loadable SnapSource which is not yet com.arcgismaps.LoadStatus.Loaded when SnapSettings.syncSourceSettings is called.
Subsequent calls will update the existing collection, accounting for SnapSource objects that have been added, removed, or moved since the last call to the same connected map. Any changes made to existing SnapSourceSettings objects, for example setting SnapSourceSettings.isEnabled, will be preserved.
Since
200.4.0
See also
Throws
if the snap settings is shared between geometry editors connected to different maps