ArcGIS Runtime SDK for iOS: AGSServiceGeodatabase.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSServiceGeodatabase.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSLoadableBase.h>
29 #import <ArcGIS/AGSRemoteResource.h>
30 
31 
32 
72 typedef NS_ENUM(NSInteger, AGSFeatureServiceSessionType) {
75 };
76 
82 
83 @protocol AGSCancelable;
84 
94 
95 #pragma mark -
96 #pragma mark initializers
97 
98 
99 
107 - (instancetype)initWithURL:(NSURL *)URL;
108 
117 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL;
118 
130 - (instancetype)initWithURL:(NSURL *)URL
131  sessionType:(AGSFeatureServiceSessionType)sessionType;
132 
145 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL
146  sessionType:(AGSFeatureServiceSessionType)sessionType;
147 
155 - (instancetype)initWithURL:(NSURL *)URL
156  versionName:(NSString *)versionName;
157 
166 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL
167  versionName:(NSString *)versionName;
168 
181 - (instancetype)initWithURL:(NSURL *)URL
182  versionName:(NSString *)versionName
183  sessionType:(AGSFeatureServiceSessionType)sessionType;
184 
198 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL
199  versionName:(NSString *)versionName
200  sessionType:(AGSFeatureServiceSessionType)sessionType;
201 
202 #pragma mark -
203 #pragma mark properties
204 
208 @property (nonatomic, copy, readonly) NSArray<AGSServiceFeatureTable *> *connectedTables;
209 
213 @property (nonatomic, copy, readonly) NSString *defaultVersionName;
214 
218 @property (nullable, nonatomic, strong, readonly) AGSArcGISFeatureServiceInfo *serviceInfo;
219 
236 @property (nonatomic, assign, readwrite) AGSFeatureServiceSessionType sessionType;
237 
241 @property (nonatomic, assign, readonly) BOOL supportsBranchVersioning;
242 
249 @property (nonatomic, copy, readonly) NSString *versionName;
250 
251 #pragma mark -
252 #pragma mark methods
253 
262 - (id<AGSCancelable>)applyEditsWithCompletion:(void(^)(NSArray<AGSFeatureTableEditResult *> * __nullable result, NSError * __nullable error))completion;
263 
280 - (id<AGSCancelable>)closeWithCompletion:(void(^)(NSError * __nullable error))completion;
281 
295 - (id<AGSCancelable>)createVersionWithParameters:(AGSServiceVersionParameters *)parameters
296  completion:(void(^)(AGSServiceVersionInfo * __nullable result, NSError * __nullable error))completion;
297 
306 - (id<AGSCancelable>)fetchVersionsWithCompletion:(void(^)(NSArray<AGSServiceVersionInfo *> * __nullable result, NSError * __nullable error))completion;
307 
312 - (BOOL)hasLocalEdits;
313 
327 - (id<AGSCancelable>)switchVersionWithName:(NSString *)versionName
328  completion:(void(^)(NSError * __nullable error))completion;
329 
340 - (nullable AGSServiceFeatureTable *)tableWithLayerID:(NSInteger)layerID;
341 
348 - (id<AGSCancelable>)undoLocalEditsWithCompletion:(void(^)(NSError * __nullable error))completion;
349 
350 @end
351 
352 
AGSFeatureServiceSessionType
Definition: AGSServiceGeodatabase.h:72
@ AGSFeatureServiceSessionTypePersistent
Definition: AGSServiceGeodatabase.h:74
@ AGSFeatureServiceSessionTypeTransient
Definition: AGSServiceGeodatabase.h:73
information about an ArcGIS Feature service
Definition: AGSArcGISFeatureServiceInfo.h:46
The edit results of a specific AGSFeatureTable.
Definition: AGSFeatureTableEditResult.h:41
A base class for loadables.
Definition: AGSLoadableBase.h:45
A dataset from an individual layer or table in an ArcGIS map or feature service.
Definition: AGSServiceFeatureTable.h:95
A container for a collection of AGSServiceFeatureTable connected to a feature service.
Definition: AGSServiceGeodatabase.h:93
NSArray< AGSServiceFeatureTable * > * connectedTables
Definition: AGSServiceGeodatabase.h:208
AGSArcGISFeatureServiceInfo * serviceInfo
Definition: AGSServiceGeodatabase.h:218
NSString * versionName
Definition: AGSServiceGeodatabase.h:249
AGSFeatureServiceSessionType sessionType
Definition: AGSServiceGeodatabase.h:236
BOOL supportsBranchVersioning
Definition: AGSServiceGeodatabase.h:241
NSString * defaultVersionName
Definition: AGSServiceGeodatabase.h:213
An object that represents version metadata for a version in a branch-versioned feature service.
Definition: AGSServiceVersionInfo.h:52
The parameters used to create a new version in a branch-versioned feature service.
Definition: AGSServiceVersionParameters.h:39
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:40