ArcGIS Runtime SDK for iOS: AGSGeodatabaseSyncTask.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSGeodatabaseSyncTask.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 
19 #import <ArcGIS/AGSLoadableRemoteResourceBase.h>
20 #import <ArcGIS/AGSGeodatabaseTaskTypes.h>
21 
22 
23 
29 @class AGSGeodatabase;
30 @class AGSSyncLayerResult;
31 @class AGSGeometry;
32 
33 @protocol AGSCancelable;
34  //Required for Globals API doc
36 
52 
53 #pragma mark -
54 #pragma mark initializers
55 
56 
57 
63 -(instancetype)initWithURL:(NSURL *)URL;
64 
70 +(instancetype)geodatabaseSyncTaskWithURL:(NSURL *)URL;
71 
72 #pragma mark -
73 #pragma mark properties
74 
78 @property (nullable, nonatomic, strong, readonly) AGSArcGISFeatureServiceInfo *featureServiceInfo;
79 
80 #pragma mark -
81 #pragma mark methods
82 
91 -(id<AGSCancelable>)defaultGenerateGeodatabaseParametersWithExtent:(AGSGeometry*)extent
92  completion:(nullable void(^)(AGSGenerateGeodatabaseParameters * __nullable params, NSError * __nullable error))completion;
93 
94 
104 -(id<AGSCancelable>)defaultSyncGeodatabaseParametersWithGeodatabase:(AGSGeodatabase*)geodatabase
105  completion:(nullable void(^)(AGSSyncGeodatabaseParameters * __nullable params, NSError * __nullable error))completion;
106 
115 -(id<AGSCancelable>)defaultSyncGeodatabaseParametersWithGeodatabase:(AGSGeodatabase*)geodatabase
116  syncDirection:(AGSSyncDirection)syncDirection
117  completion:(nullable void(^)(AGSSyncGeodatabaseParameters * __nullable params, NSError * __nullable error))completion;
118 
126 -(id<AGSCancelable>)importDeltaWithGeodatabase:(AGSGeodatabase*)geodatabase inputPath:(NSString*)inputPath completion:(void(^)(NSArray<AGSSyncLayerResult*> * __nullable result, NSError * __nullable error))completion;
127 
134 +(id<AGSCancelable>)importDeltaWithGeodatabase:(AGSGeodatabase*)geodatabase deltaPath:(NSURL *)deltaPath completion:(void(^)(NSArray<AGSSyncLayerResult*> * __nullable result, NSError * __nullable error))completion;
135 
136 
143 -(id<AGSCancelable>)registerSyncEnabledGeodatabase:(AGSGeodatabase*)geodatabase completion:(nullable void(^)(NSError * __nullable error))completion;
144 
152 -(AGSGenerateGeodatabaseJob*)generateJobWithParameters:(AGSGenerateGeodatabaseParameters *)parameters
153  downloadFileURL:(NSURL *)downloadFileURL;
154 
164 -(AGSSyncGeodatabaseJob*)syncJobWithParameters:(AGSSyncGeodatabaseParameters *)parameters
165  geodatabase:(AGSGeodatabase *)geodatabase;
166 
179 -(AGSSyncGeodatabaseJob*)syncJobWithSyncDirection:(AGSSyncDirection)syncDirection
180  rollbackOnFailure:(BOOL)rollbackOnFailure
181  geodatabase:(AGSGeodatabase *)geodatabase;
182 
190 -(id<AGSCancelable>)unregisterGeodatabase:(AGSGeodatabase *)geodatabase completion:(nullable void(^)(NSError * __nullable error))completion;
191 
192 
200 -(id<AGSCancelable>)unregisterGeodatabaseWithSyncID:(NSUUID*)syncID completion:(nullable void(^)(NSError * __nullable error))completion;
201 
202 @end
203 
204 
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
A task to download and synchronize a sync-enabled geodatabase.
Definition: AGSGeodatabaseSyncTask.h:51
Result of a sync operation by AGSSyncGeodatabaseJob.
Definition: AGSSyncLayerResult.h:33
AGSSyncDirection
Definition: AGSGeodatabaseTaskTypes.h:39
AGSArcGISFeatureServiceInfo * featureServiceInfo
Definition: AGSGeodatabaseSyncTask.h:78
A job to synchronize changes between a geodatabase and an ArcGIS Feature service. ...
Definition: AGSSyncGeodatabaseJob.h:35
information about an ArcGIS Feature service
Definition: AGSArcGISFeatureServiceInfo.h:38
Parameters to synchronize data of a sync-enabled geodatabase.
Definition: AGSSyncGeodatabaseParameters.h:36
Definition: AGSLoadableRemoteResourceBase.h:28
Parameters to generate a sync-enabled geodatabase.
Definition: AGSGenerateGeodatabaseParameters.h:38
A geodatabase on disk.
Definition: AGSGeodatabase.h:36
A job to generate a geodatabase from an ArcGIS Feature service.
Definition: AGSGenerateGeodatabaseJob.h:35
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32