ArcGIS Runtime SDK for iOS: AGSServiceGeodatabase.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSServiceGeodatabase.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <ArcGIS/AGSLoadableBase.h>
22 #import <ArcGIS/AGSRemoteResource.h>
23 
24 
25 
31 
32 @protocol AGSCancelable;
33 
43 
44 #pragma mark -
45 #pragma mark initializers
46 
47 
48 
56 - (instancetype)initWithURL:(NSURL *)URL;
57 
65 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL;
66 
74 - (instancetype)initWithURL:(NSURL *)URL
75  versionName:(NSString *)versionName;
76 
84 + (instancetype)serviceGeodatabaseWithURL:(NSURL *)URL
85  versionName:(NSString *)versionName;
86 
87 #pragma mark -
88 #pragma mark properties
89 
93 @property (nonatomic, copy, readonly) NSArray<AGSServiceFeatureTable *> *connectedTables;
94 
98 @property (nonatomic, copy, readonly) NSString *defaultVersionName;
99 
103 @property (nullable, nonatomic, strong, readonly) AGSArcGISFeatureServiceInfo *serviceInfo;
104 
108 @property (nonatomic, assign, readonly) BOOL supportsBranchVersioning;
109 
116 @property (nonatomic, copy, readonly) NSString *versionName;
117 
118 #pragma mark -
119 #pragma mark methods
120 
128 - (id<AGSCancelable>)applyEditsWithCompletion:(void(^)(NSArray<AGSFeatureTableEditResult *> * __nullable result, NSError * __nullable error))completion;
129 
143 - (id<AGSCancelable>)createVersionWithParameters:(AGSServiceVersionParameters *)parameters
144  completion:(void(^)(AGSServiceVersionInfo * __nullable result, NSError * __nullable error))completion;
145 
154 - (id<AGSCancelable>)fetchVersionsWithCompletion:(void(^)(NSArray<AGSServiceVersionInfo *> * __nullable result, NSError * __nullable error))completion;
155 
160 - (BOOL)hasLocalEdits;
161 
175 - (id<AGSCancelable>)switchVersionWithName:(NSString *)versionName
176  completion:(void(^)(NSError * __nullable error))completion;
177 
188 - (nullable AGSServiceFeatureTable *)tableWithLayerID:(NSInteger)layerID;
189 
195 - (id<AGSCancelable>)undoLocalEditsWithCompletion:(void(^)(NSError * __nullable error))completion;
196 
197 @end
198 
199 
A container for a collection of AGSServiceFeatureTable connected to a feature service.
Definition: AGSServiceGeodatabase.h:42
A base class for loadables.
Definition: AGSLoadableBase.h:37
BOOL supportsBranchVersioning
Definition: AGSServiceGeodatabase.h:108
The edit results of a specific AGSFeatureTable.
Definition: AGSFeatureTableEditResult.h:33
AGSArcGISFeatureServiceInfo * serviceInfo
Definition: AGSServiceGeodatabase.h:103
The parameters used to create a new version in a branch-versioned feature service.
Definition: AGSServiceVersionParameters.h:31
information about an ArcGIS Feature service
Definition: AGSArcGISFeatureServiceInfo.h:38
An object that represents version metadata for a version in a branch-versioned feature service...
Definition: AGSServiceVersionInfo.h:44
NSString * defaultVersionName
Definition: AGSServiceGeodatabase.h:98
NSString * versionName
Definition: AGSServiceGeodatabase.h:116
NSArray< AGSServiceFeatureTable * > * connectedTables
Definition: AGSServiceGeodatabase.h:93
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:34
A dataset from an individual layer or table in ArcGIS Map or Feature service.
Definition: AGSServiceFeatureTable.h:87
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32