switchVersion

suspend fun switchVersion(versionName: String): Result<Unit>

Switches all connected feature tables to the new version. An error is thrown if:

Check the result of ServiceGeodatabase.hasLocalEdits before attempting to switch versions, to make sure all changes are saved to the service or discarded from the local cache. Use the ServiceGeodatabase.applyEdits or ServiceGeodatabase.undoLocalEdits methods as appropriate to save or discard changes before switching versions.

Return

A Result that has no value.

Since

200.1.0

Parameters

versionName

The name of the version to connect to.