refresh method

Future<void> refresh()

Refreshes a persistent read session with the current data from the server.

Feature services 12.0 added support for multiple readers and a single writer for a version. In FeatureServiceSessionType.persistent mode, when a service supports this behavior, calling this method advances the service geodatabase from its previous read state to the present state of the data without being closed. This allows the client to view changes to the version since the last read or the last refresh.

Data from ServiceGeodatabase.connectedTables is refreshed from the previous read state, so dependent queries and redraws are re-evaluated against the present state of the data.

Calling this method when in FeatureServiceSessionType.transient mode or when a service doesn't support this behavior results in an error.

Return Value: No value.