ArcGIS Runtime SDK for iOS: AGSOfflineMapSyncTask.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSOfflineMapSyncTask.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSLoadableBase.h>
27 
28 
29 
30 @class AGSMap;
35 
36 @protocol AGSCancelable;
37  //Required for Globals API doc
39 
49 
50 #pragma mark -
51 #pragma mark initializers
52 
53 
54 
59 -(instancetype)initWithMap:(AGSMap*)map;
60 
66 +(instancetype)offlineMapSyncTaskWithMap:(AGSMap*)map;
67 
68 #pragma mark -
69 #pragma mark properties
70 
74 @property (nonatomic, strong, readonly) AGSMap *map;
75 
84 @property (nullable, nonatomic, strong, readonly) AGSOfflineMapUpdateCapabilities *updateCapabilities;
85 
86 #pragma mark -
87 #pragma mark methods
88 
109 -(id<AGSCancelable>)checkForUpdatesWithCompletion:(void(^)(AGSOfflineMapUpdatesInfo * __nullable result, NSError * __nullable error))completion;
110 
121 -(id<AGSCancelable>)defaultOfflineMapSyncParametersWithCompletion:(void(^)(AGSOfflineMapSyncParameters * __nullable result, NSError * __nullable error))completion;
122 
142 -(AGSOfflineMapSyncJob *)offlineMapSyncJobWithParameters:(AGSOfflineMapSyncParameters *)parameters;
143 
144 @end
145 
146 
A base class for loadables.
Definition: AGSLoadableBase.h:45
A map containing 2D geographic content.
Definition: AGSMap.h:68
A job to sync an offline map.
Definition: AGSOfflineMapSyncJob.h:49
Parameters to synchronize an offline map.
Definition: AGSOfflineMapSyncParameters.h:50
A task to sync an offline map.
Definition: AGSOfflineMapSyncTask.h:49
AGSOfflineMapUpdateCapabilities * updateCapabilities
Definition: AGSOfflineMapSyncTask.h:84
AGSMap * map
Definition: AGSOfflineMapSyncTask.h:74
Describes supported methods for obtaining updates for an offline map.
Definition: AGSOfflineMapUpdateCapabilities.h:38
Provides information on the available updates for an offline map.
Definition: AGSOfflineMapUpdatesInfo.h:51
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38