ArcGIS Runtime SDK for iOS: AGSServiceGeodatabase.h File Reference
ArcGIS Runtime SDK for iOS  100.15
AGSServiceGeodatabase.h File Reference

Go to the source code of this file.

Enumerations

enum  AGSFeatureServiceSessionType { AGSFeatureServiceSessionTypeTransient = 0 , AGSFeatureServiceSessionTypePersistent = 1 }
 

Enumeration Type Documentation

◆ AGSFeatureServiceSessionType

An enumeration of the session types that control how multiple users access branch versioned data

Session types (transient and persistent) let you control how multiple viewers and editors access branch versioned feature services. By default, a web map or web scene with branch versioned feature services (an AGSServiceGeodatabase version) loads as an AGSFeatureServiceSessionTypeTransient type; you can change this type to AGSFeatureServiceSessionTypePersistent at the map or scene level when you load the map or scene.

When you switch the AGSServiceGeodatabase version being used via switchVersionWithName:completion: (AGSServiceGeodatabase), a read operation is started on the new version before releasing the previous version. If acquiring a shared lock on the new version fails (for example, if another user is editing the version), an error is raised. This behavior allows you to keep the user connected to the original version when the version they want is not yet available.

For descriptions of additional ways to manage multiple viewers and editors in branch versioned data, such as using multiple tiers of editors, see the ArcGIS Pro discussion on branch version scenarios.

See also
AGSServiceGeodatabase::sessionType, AGSLoadSettings::featureServiceSessionType
Since
100.10
Enumerator
AGSFeatureServiceSessionTypeTransient 

A momentary session is used during queries and edit operations.

AGSFeatureServiceSessionTypePersistent 

A session is held open as long as tables are actively reading or writing.