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